I have been learning flex recently. I want to share some small things I have summarized and hope it will help new users!
First, you need to installFlexcomponentkit. mxpThis plug-in is used to expand your Flash software! (Download of this plug-in is provided below)
2. Then, open the Flash software (CS3 must be a later version) and modify the release settings:
1,
2, and then add the previous SWC file here, flash-integration.swc (the download of this file will be provided below)
3,
3. Now you can build the SWC component in the flex custom! The specific creation method is as follows!
4. For example, you can create a video clip, component 1.
5. Right-click the video clip in the library and click Properties. The settings are as follows:
(Click an image to display the image in a large image !)
Name a class at will: for example, test_swc is used.
Change the default base class name display. Flash. moiveclip to MX. Flash. uimovieclip!
6. Click OK! At this time, you will find that,
In the flash library, your MC icon is changed to the FX icon (indicating success)
7. Right-click the FX file in the Flash library and export the SWC file!
8. Put the SWC file in the libs folder of the Flex project folder. The custom component is automatically generated on flex !!!