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