Mouse pointer system default hand icon (Flixel game-making library)

1.1k views Asked by At

How to change mouse pointer to system default hand/pointer icon hovering button, for example?

1

There are 1 answers

0
Sergey L On

http://www.kirupa.com/flash/changing_mouse_cursor.htm

package 
{
import flash.ui.Mouse;
import flash.ui.MouseCursor;
} 

// function
quitButton = new FlxButton(10, 10, "Quit", onQuit);
quitButton.onOver = function():void { Mouse.cursor = MouseCursor.BUTTON; };
quitButton.onOut = function():void { Mouse.cursor = MouseCursor.AUTO; };