jiahuafu

flex中的架构,(举例UIComponent类的继承关系)

flex中的架构,(举例UIComponent类的继承关系)
UIComponent > FlexSprite> Sprite >DisplayObjectContainer>InteractiveObject >Displayobject

flash中的架构(Sprite类的继承关系)
Sprite >DisplayObjectContainer>InteractiveObject >Displayobject

Flex中的UIMovieClip类继承于UIComponent ,flash中的MovieClip继承于Sprite,
flash中直接导出SWC,SWC中的元件属于MovieClip,而在Flex中确不能在现实对象中直接添加没有IUIComponent接口的类对象,所以不能使用.

解决方法:

使用官方提供插件,让FLASH自动编译MovieClip为UIMovieClip类,
Flex Component Kit for Flash CS3工具
下载地址为:
http://www.hebei35.cn/blog/attachments/month_0804/c200841212643.zip
官方下载:在http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins 中找到,注册后可下载!
安装完插件后,可以在命令中得到:Make flex Component指令
编辑好元件A,选择元件A,然后选择Make flex Component指令,则可生成UIMovieClip组件,然后选中元件A右击,选择导出SWC即可.
Flex中使用SWC :
在Flex中,选择你创建的项目>Properties>Flex bulitPath >LabriaryPath>ADDswc即可导入

分类:

技术点:

相关文章:

  • 2021-07-28
  • 2021-05-18
  • 2018-10-09
  • 2018-02-06
  • 2021-12-07
  • 2021-06-05
  • 2022-01-06
  • 2021-11-07
猜你喜欢
  • 2021-09-07
  • 2021-06-04
  • 2021-04-10
  • 2021-07-15
  • 2021-07-19
  • 2021-04-27
  • 2021-10-17
相关资源
相似解决方案