Load cursor from URL : Cursor « 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 » CursorScreenshots 
Load cursor from URL
Load cursor from URL
      
<?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.Create Cursor for arrayCreate Cursor for array
2.Using showBusyCursor property for SWFLoaderUsing showBusyCursor property for SWFLoader
3.Creating and removing a cursorCreating and removing a cursor
4.Use CursorManager to set and remove cursorUse CursorManager to set and remove cursor
5.Use default busy cursorUse default busy cursor
6.Install and uninstall busy cursorInstall and uninstall busy cursor
7.Create a default busy cursor at a higher priority levelCreate a default busy cursor at a higher priority level
8.Set and remove busy cursorSet and remove busy cursor
9.Use custom cursor from pngUse custom cursor from png
10.Remove cursor by idRemove cursor by id
11.Use CursorManager to load png file based cursorUse CursorManager to load png file based cursor
12.CursorManager DemoCursorManager Demo
13.Define Busy CursorDefine Busy Cursor
14.Show Busy Cursor by using ActionScriptShow Busy Cursor by using ActionScript
15.Show Busy Cursor for Image loading
w__w_w___.___j___a__va2___s.__c_o___m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.