I have a very similar setup and for me that combination works like a charm ... I described my steps here: http://dev.c-ware.de/confluence/display/PUBLIC/Optimizing+your+build
What exactly is not working at runtime? Chris 2011/7/5 SiD <[email protected]>: > Hey, > > I would like to hear if there is any success stories with using FM4b7 > in a multi-module with rsl application. > > Just to make sure what I know from my investigation: > > You need to have swfVersion 11 configured: > <swfVersion>11</swfVersion> > > To embed fonts/images you need to configure FM4 plugin with flexmojos- > threadlocaltoolkit-wrapper like this: > ... > <plugin> > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-maven-plugin</artifactId> > <version>${flexmojos-version}</version> > <extensions>true</extensions> > <dependencies> > <dependency> > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId> > <version>${flexmojos-version}</version> > </dependency> > <dependency> > <groupId>com.adobe.flex</groupId> > <artifactId>compiler</artifactId> > <version>${flex-framework-version}</version> > <type>pom</type> > <scope>compile</scope> > </dependency> > </dependencies> > ... > > Some configuration has changed name from 3.*: compiledLocales is now > localesCompiled, etc. > http://repository.sonatype.org/content/sites/flexmojos-site/4.0-SNAPSHOT/plugin-info.html > > To create a SWC with a RSL, you need to specify the create-rsl goal > since FM4 does not seem to do it automatically: > <execution> > <goals> > <goal>create-rsl</goal> > </goals> > </execution> > > If you want the new fonts manager as configured by Flash Builder add > this to the configuration: > <fonts> > <advancedAntiAliasing>true</advancedAntiAliasing> > <managers> > <manager-class>flash.fonts.JREFontManager</manager-class> > <manager-class>flash.fonts.BatikFontManager</manager-class> > <manager-class>flash.fonts.AFEFontManager</manager-class> > <manager-class>flash.fonts.CFFFontManager</manager-class> > </managers> > </fonts> > > Make sure to use the same ordering in you dependencies for flash > frameworks. Here is mine, can not guarantee it will work. This is > configured as "caching" for my SWF, you should make sure to use > "external" for your SWC. > > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>playerglobal</artifactId> > <version>${flex-framework-version}</version> > <classifier>10.2</classifier> > <type>swc</type> > <scope>external</scope> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>textLayout</artifactId> > <version>${flex-framework-version}</version> > <type>swc</type> > <scope>caching</scope> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>framework</artifactId> > <version>${flex-framework-version}</version> > <type>swc</type> > <scope>caching</scope> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>spark</artifactId> > <version>${flex-framework-version}</version> > <type>swc</type> > <scope>caching</scope> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>sparkskins</artifactId> > <version>${flex-framework-version}</version> > <type>swc</type> > <scope>caching</scope> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>rpc</artifactId> > <version>${flex-framework-version}</version> > <type>swc</type> > <scope>caching</scope> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>charts</artifactId> > <version>${flex-framework-version}</version> > <type>swc</type> > <scope>caching</scope> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>mx</artifactId> > <version>${flex-framework-version}</version> > <type>swc</type> > <scope>caching</scope> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>advancedgrids</artifactId> > <version>${flex-framework-version}</version> > <type>swc</type> > <scope>caching</scope> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>flex-framework</artifactId> > <version>${flex-framework-version}</version> > <type>pom</type> > <exclusions> > <exclusion> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>playerglobal</artifactId> > </exclusion> > </exclusions> > </dependency> > > If you want the "halo" theme add the following dependency > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>halo</artifactId> > <version>${flex-framework-version}</version> > <classifier>theme</classifier> > <type>swc</type> > <scope>theme</scope> > </dependency> > > Here is all that I could find to make FM4b7 compile with > 4.5.0.20967... but it does not work at runtime. > > -- > You received this message because you are subscribed to the Google > Groups "Flex Mojos" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/flex-mojos > > http://flexmojos.sonatype.org/ > -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/
