Use CursorManager to install and remove Image based cursor : CursorManager « Components « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Components » CursorManagerScreenshots 
Use CursorManager to install and remove Image based cursor
Use CursorManager to install and remove Image based cursor
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

    <mx:Script>
        
            
            import mx.managers.CursorManager;
            
            [Embed(source="a.png")]
            private var busyCursorSymbol:Class;
            
            private var cursorId:Number = 0;
            
            private function initImage():void
            {
                myImage.source = "http://yourserver.com/logo.jpg?v=0";
                cursorId = CursorManager.setCursor(busyCursorSymbol);
            }
            
            private function loadComplete():void
            {
                CursorManager.removeCursor(cursorId);
            }
            
      
    </mx:Script>
    
    <mx:Image id="myImage" />
    <mx:Button label="Load" click="initImage()" />
    
</mx:Application>

   
  
Related examples in the same category
1.Set BusyCursor with CursorManagerSet BusyCursor with CursorManager
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.