Flash Player 10
If is possible to use flex-mojos with flex SDK 3.0.1, is possible to use flex-mojos to do tests with Flash Player 10.
This sample is available here. Is required to use flex-compiler-mojo 1.0-beta5-SNAPSHOT or any newer.
Looking at this I learn how to configure a common environment to use fp10. Them, I configure flex SDK 3.0.1.1728 on flex mojos (like this).
The steps to enable fp 10 usage are this:
- Add target player 10.0.0 configuration:
<targetPlayer>10.0.0</targetPlayer>
- Them add plugin dependency:
<plugin>
<groupId>info.rvin.mojo</groupId>
<artifactId>flex-compiler-mojo</artifactId>
....
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>flex-compiler-oem</artifactId>
<version>3.0.1.1728</version>
</dependency>
</dependencies>
</plugin>
- In the end update project dependencies:
<dependencies>
<dependency>
<groupId>com.adobe.flex.sdk</groupId>
<artifactId>playerglobal</artifactId>
<version>10.0.0-beta-051508</version>
<type>swc</type>
<scope>external</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.sdk</groupId>
<artifactId>framework</artifactId>
<version>3.0.1.1728</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.sdk</groupId>
<artifactId>framework</artifactId>
<version>3.0.1.1728</version>
<type>resource-bundle</type>
<classifier>en_US</classifier>
</dependency>
</dependencies>
This 3 steps are done on this pom.
Ok, flex-mojos is flash-player 10 ready. Them what? How do I prove it’s fp 10 ready?
I copy this sample.
When I tried to compile go this erro:
[ERROR] D:\flex\workspace\mojo\flex-mojo-IT\src\test\resources\flash-player-10\src\main\flex\main.mxml:[10,-1] Implicit coercion of a value of type String to an unrelated type int.
Perfect, generics working =D
Now I need to found some real use for flash player 10. Any ideas?
VELO
Discussion Area - Leave a Comment