Mega Code Archive

 
Categories / Flex / Components
 

Use default busy cursor

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Script>          import mx.managers.CursorManager;     import flash.events.*;     private function initImage(event:MouseEvent):void {         CursorManager.setBusyCursor();         image1.load("logo.JPG");     }     private function loadComplete(event:Event):void {         CursorManager.removeBusyCursor();     }        </mx:Script>     <mx:VBox>         <mx:Image id="image1" complete="loadComplete(event);"/>         <mx:Button id="myButton" label="Show" click="initImage(event);"/>     </mx:VBox> </mx:Application>