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.
<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代码