The architecture in Flex (for example, the inheritance relationship of the uicomponent class)

Source: Internet
Author: User

The architecture in Flex (for example, the inheritance relationship of the uicomponent class)
Uicomponent> flexsprite> sprite> displayobjectcontainer> interactiveobject> displayobject

Architecture in Flash (inheritance relationship of Sprite classes)
Sprite> displayobjectcontainer> interactiveobject> displayobject

The uimovieclip class in flex inherits from uicomponent, And the movieclip in Flash inherits from Sprite,
In flash, SWC is exported directly. The SWC components belong to movieclip. In Flex, class objects without the iuicomponent interface cannot be directly added to real objects, so they cannot be used.

Solution:

Use the official plug-in to enable Flash to automatically compile movieclip as the uimovieclip class,
Flex component kit for Flash CS3 Tool
Is:
Http://www.hebei35.cn/blog/attachments/month_0804/c200841212643.zip
Official download: In http://www.adobe.com/cfusion/entitlement/index.cfm? E = flex % 5 fskins found, can be downloaded after registration!
After installing the plug-in, you can get the "make flex component" command in the command.
Edit component A, select component A, and select the make flex component command to generate the uimovieclip component. Then, right-click component A and choose export SWC.
Use SWC In Flex:
In Flex, select the project you created> Properties> flex bulitpath> labriarypath> addswc to import

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.