首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

Flex module 学习小结

2012-10-27 
Flex module 学习总结Adobe 写道To see an example of an ActionScript class that extends the Module cl

Flex module 学习总结
Adobe 写道To see an example of an ActionScript class that extends the Module class, create an MXML file with the root tag of
<s:Module>. When you compile this file, set the value of the keep-generated-actionscript compiler property to
true. The Flex compiler stores the generated ActionScript class in a directory called generated. You will notice that
this generated class contains code that you probably will not understand. As a result, you should not write
ActionScript-based modules that extend the Module class; instead, you should use MXML to write such modules.

If your module does not include any framework code, you can create a class that extends ModuleBase. If you use the
ModuleBase class, your module will typically be smaller than if you use a module based on the Module class because
it does not have any framework class dependencies.

?

keep-generated-actionscript 用在compiler属性设定,可以看到flex生成的module的as代码

热点排行