flex三种连级方式:
内联:<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="var codetxt:Text=new Text">
</mx:Application>
级联:<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="sayhello();">
<mx:Script>
<![CDATA[
pblic function sayhello() : void {
var codetxt:Text=new Text
}
]]>
</mx:Script>
</mx:Application>
外联:<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="sayhello();">
<mx:Scrit source="/hellofunc.as"></mx:Script>
</mx:Application>