Use flash to create a SWC file and generate a flex custom component

Source: Internet
Author: User

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 !!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.