- In Flex Builder, create a new AS project.
- In the project folder create a new FLA: 'assets/assets.fla'. (the frame script cannot be blank. You should add at least one statement like stop(); )
- In the Flash publish settings, check 'Export SWC'.
- Create a symbol in the FLA. Set the Linkage id to: 'assets.MySymbol'.
- Publish the SWC.
- In Flex Builder do Project -> Properties-> ActionScript Build Path -> Library Path -> Add SWC. Enter the path to the SWC ('assets/assets.swc') .
- In Flex Builder, edit the main class. Type 'import assets.'. The symbol name you defined in the FLA will now show as a code completion option.
2010年3月19日 星期五
Loading Flash Assets from SWC File
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言