Flex ~ set Mouse Cursor to image by CursorManager

import mx.managers.CursorManager;
import mx.managers.CursorManagerPriority;

[Embed("img/cursors/arrow.png")]
private var cursorArrow:Class;

public function init():void 
{
    CursorManager.setCursor(cursorArrow, 2, 0, 0);
}

public function remove():void 
{
    CursorManager.removeAllCursors();
}


http://www.switchonthecode.com/tutorials/flex-custom-cursor-tutorial

沒有留言:

發佈留言