Mega Code Archive

 
Categories / Flex / Container
 

Call a function when application is created completed

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"     creationComplete="doSomething()">     <mx:Script>     public var s:Boolean;     public function doSomething():void {         s = label1.visible;         label1.text = String(s);     }   </mx:Script>     <mx:Label id="label1" /> </mx:Application>