I'm working on a Java web application which contains some Flash modules.
So far I've used Adobe Flash builder to compile the Flash source code and manually integrate the swf file into the war, and the web application can be deployed and runs successfully.
Recently the customer, who also is the source code proprietary, asked for managing the Flash source modules using the flex-mojo maven plugin.
The problem is that the application compiles and is deployed with no errors but no longer works. When you access the application from a browser after the login phase a blank screen appears and there is no way to interact with the application.
The pom.xml
used to build the Flash module is the following (I omitted irrelevant parts):
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.0-RC2</version>
<extensions>true</extensions>
<configuration>
<contextRoot>myapp</contextRoot>
<services>../myapp-war/src/main/webapp/WEB-INF/flexCompile/services-config.xml</services>
<localesSourcePath>${basedir}/locale/{locale}</localesSourcePath>
<debug>true</debug>
<output>target/myapp.swf</output>
<definesDeclaration>
<property>
<name>BUILD::buildNumber</name>
<value>"Versione: ${project.version}"</value>
</property>
</definesDeclaration>
<localesRuntime>
<locale>en_US</locale>
</localesRuntime>
<localesCompiled>
<locale>en_US</locale>
</localesCompiled>
</configuration>
</plugin>
</plugins>
It's important to notice that the size of the two compiled swf files are different, so this seems to be a compiler version issue. Is there anyone who uses to develop with Flash and Java that can give me some hint about solving this issue, even just pointing me to resources, forums, and so on?