flex 的as文件引用,包引用

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:page="page.*"
   preinitialize="aa.t()" initialize="aa.tt()" creationComplete="aa.ttt()"
   applicationComplete="aa.tttt()" >
 <mx:Script>
        <![CDATA[ 
            import page.test1;
            public var tt:test1= new test1();
        ]]>
 </mx:Script>
 <mx:Script source="file.as"/>    
<page:test1 id="aa"/>
<mx:Button x="38" y="72" label="Button1" click="tt.t()"/>
<mx:Button x="38" y="102" label="Button2" click="aa.t()"/>
<mx:Button x="38" y="132" label="Button3" click="file()"/>
</mx:Application>

你可能感兴趣的:(Flex)