Flex Component Kit for Flash CS3(continued..)
Quick overview of using the Flex Component Kit
Flash content requirements
- Exported content must be a MovieClip symbol
- Registration point must be upper-left corner
- Frame rate should be 24 to match Flex’s default frame rate
- The symbol name should be a valid ActionScript class name (alphanumeric characters only, no spaces)
Preparing Flash content for use in Flex
- In the Flash Library Panel, select the symbol(s) you want to use in Flex
- Select Commands > Make Flex Component
- If the current frame rate is not 24fps, you will be asked if you want to change it to 24fps
- Any changes made to the FLA file and symbol(s) are printed to the Output panel
- If the current frame rate is not 24fps, you will be asked if you want to change it to 24fps
Select File > Publish to create the SWC file
Bringing the Flash content into Flex
- In FlexBuilder project properties dialog
- Choose “Flex Build Path” in the category list
- Select “Library Path”
- Select “Add SWC…” and choose the SWC exported from Flash
- Close the project properties dialog
- Choose “Flex Build Path” in the category list
- In your MXML code, start typing the name of the Flash class. You will see it in the code hinting popup.
What Are the Limitations?
- Flex Components created in Flash do not appear in FlexBuilder’s Design View or Components Panel. This will be addressed in the next version of Flex Builder.
After publishing a SWC from Flash, you may need to touch your MXML file to force a recompile.
Read the full story: Flex Component Kit For Flash CS3
Source:labs.adobe.com
July 3rd, 2007 at 6:18 am
[...] http://anandvardhan.com/2007/06/29/flex-component-kit-for-flash-cs3continued/ [...]