I am a newbie to flex and flex-mojos, I am prototyping a flex maven project which includes a java based webapp project and a flex project. I met issue that the compiler could not find the external css. Appreciate someone could help me out.
I have a very simple test application <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Style source="assets/mystyles.css"/> <mx:Text text="Hello World!"/> <mx:Image x="91" y="60" width="111" height="68" source="@Embed (source='../resources/images/btn_innercity_selected.png')"/> <mx:Image x="91" y="120" width="57" height="62" source="images/ button_help.png"/> <mx:TextInput x="251" y="60"/> </mx:Application> In FlexBuilder, the compiled swf file can display images well. CSS is applied correctly when never you choose to compile css file to swf. and it will only copy non-embedded images to bin-debug. What I want is to make it consistent between maven build and flexbuilder build. I have tried to use <includeFiles>, seems it is not for that. Is it a must to compile the css to swc ? I copied part of my pom.xml here. <build> <finalName>${target.swf}</finalName> <sourceDirectory>src/main/flex</sourceDirectory> <testSourceDirectory>src/test/flex</testSourceDirectory> <plugins> <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>3.1.0</version> <extensions>true</extensions> <executions> <!-- <execution> <id>compile-css</id> <goals> <goal>compile-swc</goal> </goals> <configuration> <includeFiles> <file>assets/mystyles.css</file> </includeFiles> <locales> <locale>en_US</locale> </locales> <output>${project.build.directory}/assets/ mystyles.swc</output> </configuration> </execution> --> <execution> <id>compile-main-swf</id> <goals> <goal>compile-swf</goal> </goals> <configuration> <contextRoot>/chunqiu</contextRoot> <debug>true</debug> <!-- <includes> <include>assets/mystyles</include> </includes> --> <locales> <locale>en_US</locale> </locales> <debug>true</debug> </configuration> </execution> </executions> </plugin> </plugins> </build> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" 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_india?hl=en -~----------~----~----~----~------~----~------~--~---

