Flex 3 SDK build 3.2.0.3958

ASFoundry 2.1.0 and Maven Flex plugin 2.1.0 are both using libraries from the SDK 3.2.0.3958.
Please find below an example POM depicting how to use those dependencies in your own project.

        <!-- STANDARD DEPENDENCIES  -->
        <dependency>
                <groupId>com.adobe.flash.core</groupId>
                <artifactId>playerglobal</artifactId>
                <type>swc</type>
                <scope>provided</scope>
                <version>2.0</version>
        </dependency>
        <dependency>
            <groupId>com.adobe.flex.sdkcore</groupId>
            <artifactId>flex</artifactId>
            <version>3.2.0.3958</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>com.adobe.flex.sdkcore</groupId>
            <artifactId>framework</artifactId>
            <version>3.2.0.3958</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>com.adobe.flex.sdkcore</groupId>
            <artifactId>rpc</artifactId>
            <version>3.2.0.3958</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>com.adobe.flex.sdkcore</groupId>
            <artifactId>utilities</artifactId>
            <version>3.2.0.3958</version>
            <type>swc</type>
        </dependency>
	<dependency>
	    <groupId>com.adobe.flex.locales.en_US</groupId>
	    <version>3.2.0.3958</version>
	    <artifactId>framework_rb</artifactId>
	    <type>swc</type>
	</dependency>
	<dependency>
	    <groupId>com.adobe.flex.locales.en_US</groupId>
	    <version>3.2.0.3958</version>
	    <artifactId>rpc_rb</artifactId>
	    <type>swc</type>
	</dependency>

You also need to specify :

    <pluginRepositories>
        <pluginRepository>
            <id>central</id>
            <name>Central Maven Repository</name>
            <url>http://repo1.maven.org/maven2</url>
        </pluginRepository>
        <pluginRepository>
            <id>servebox</id>
            <name>ServeBox Plugin Repository</name>
            <url>http://maven.servebox.org/repository</url>
        </pluginRepository>
    </pluginRepositories>
 
    <repositories>
        <repository>
            <id>Maven.ServeBox.org</id>
            <name>ServeBox.org repository</name>
            <url>http://maven.servebox.org/repository</url>
        </repository>
    </repositories>
Print This Post Print This Post Tuesday, December 9th, 2008 Flex news by Jeff Mathiot

4 Comments to Flex 3 SDK build 3.2.0.3958

  1. I’ve been trying to create a simple swf file for a while now and I’ve found that the build doesn’t compile unless I add the following dependency:

    <dependency>
    <groupId>com.adobe.flash.core</groupId>
    <artifactId>playerglobal</artifactId>
    <type>swc</type>
    <version>2.0</version>
    </dependency>

    Even when I do add this dependency I seem to have problems running my my file. This is the only relevant web page I have found concerning this issue: http://bugs.adobe.com/jira/browse/SDK-15073

    Have you ever seen a similar problem? More information is available upon request.

  2. pwilder on January 7th, 2009
  3. Definitely, it’s a compiler bug, playerglobal.swc can’t be renamed. You can use “mvn flex:eclipse” command on your project to generate the .actionScriptProperty file, playerglobal.swc will be copied in your libs folder and linked to your project.

  4. Alexis Desmarais on January 8th, 2009
  5. Hello Philip,
    Actually, the playerglobal.swc contains the type definitions of the flash player’s built-in classes, so its bytecode should not be embedded into your SWF artifact.
    You should declare your dependency with the “provided” scope. This way the bytecode will be used by the compiler to link the classes, but it won’t be embedded into your SWF file.

    You may use archetypes to create sample projects : http://maven.servebox.org/sites/maven-flex-plugin/flex-plugin/configuration/using-archetypes.html

    I updated this post, because the dependency was not mentioned there.

    I hope this helps.
    Jeff.

  6. Jeff Mathiot on January 8th, 2009
  7. Thanks Jeff, your ‘provided’ trick worked like a charm. I do feel a little dumb for missing this one though.

  8. pwilder on January 9th, 2009

Leave a comment

You must be logged in to post a comment.