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