Compile Error: DatagramSocketDataEvent

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

mlindsayea
Posts: 8
Joined: 05 Jan 2012, 18:15
Location: Redwood Shores

Compile Error: DatagramSocketDataEvent

Postby mlindsayea » 05 Jan 2012, 18:24

I've added chat to our project in my development (Flash Builder 4) environment, but when I try to build the project using Jenkins to publish this to our server I'm getting the following error:

[exec] /var/lib/jenkins/jobs/xxxxx/workspace/xxxxx/Colony/DL/client/DSUtil/libs/SFS2X_API_AS3.swc(com.smartfoxserver.v2.bitswarm:AirUDPManager)
[exec]
[exec] Error: Type was not found or was not a compile-time constant: DatagramSocketDataEvent.

The build machine is using Flex 4.0 SDK.

Thanks,
- Michael
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 06 Jan 2012, 10:54

but when I try to build the project using Jenkins to publish this to our server I'm getting the following error:

Using Jenkins? What is it?
Lapo
--
gotoAndPlay()
...addicted to flash games
mlindsayea
Posts: 8
Joined: 05 Jan 2012, 18:15
Location: Redwood Shores

Build Error

Postby mlindsayea » 06 Jan 2012, 16:26

Sorry...

Jenkins (Hudson Ancestor) is a continuous integration build tool. Our implementation checks the project out from source control and uses ant to execute all of the build scripts. The portion of the build script in question looks something like this...

Code: Select all

    <target name="compileUIHud"
            description="Compiles the UserInterface_HUD"
            depends="dscore">
        <echo message="============================================"/>
        <echo message="Building: UserInterface_HUD"/>
        <echo message="============================================"/>
      
        <exec executable="${FLEX_HOME}/${MXMLC}" failonerror="true">
            <arg line="+configname=air"/>
            <arg line="-compiler.include-libraries=${LIBS_DIR}/SFS2X_API_AS3.swc" />
            <arg line="-compiler.incremental=true" />
            <arg line="-debug=${debug}" />
            <arg line="-source-path='${SOURCE_UI_HUD}'" />
            <arg line="'${SOURCE_UI_HUD}/UserInterface_HUD.as'"/>
            <arg line="-o=${OUTPUT_UI_HUD}"/>
            <arg line="-use-network=true" />
            <arg line="-static-link-runtime-shared-libraries=true"/>
        </exec>
        -->
    </target>


I have tried it both with and without the air config setting (this uses the air compiler instead of the flex compiler)

Thanks for getting back to me.
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 07 Jan 2012, 09:03

Unfortunately I don't think I am able to help here because I have never used this tool. However I can guarantee that the API compile perfectly with any project based on Flex Builder 3.5 and higher.
Lapo

--

gotoAndPlay()

...addicted to flash games
mlindsayea
Posts: 8
Joined: 05 Jan 2012, 18:15
Location: Redwood Shores

[SOLVED] Compile Error: DatagramSocketDataEvent

Postby mlindsayea » 30 Jan 2012, 23:53

I'm now including the SFS2X swc in a game library which uses compc compiler (not ActionScript project/app which uses mxmlc compiler) and it is working fine now. Go figure...
LeMageFou
Posts: 18
Joined: 19 Aug 2011, 15:51

Postby LeMageFou » 01 Feb 2012, 20:07

Use the option -library-path to link with the SWC and not the -include-libraries option.
I just got the same error under Eclipse/Ant and changing the linking option solved the problem for me.

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 15 guests