Skip to content

Instantly share code, notes, and snippets.

@kitschpatrol
Created August 23, 2011 22:31
Show Gist options
  • Save kitschpatrol/1166784 to your computer and use it in GitHub Desktop.
Save kitschpatrol/1166784 to your computer and use it in GitHub Desktop.
import flash.ui.MouseCursorData;
import flash.ui.MouseCursor;
import flash.ui.Mouse;
// Mouse Hiding
// This is ridiculous
cursorData = new MouseCursorData();
var cursorBitmaps:Vector.<BitmapData> = new Vector.<BitmapData>(1, true);
cursorBitmaps[0] = new BitmapData(1, 1, true, 0x000000ff);
cursorData.data = cursorBitmaps;
Mouse.registerCursor("hidden", cursorData);
Mouse.cursor = "hidden";
Mouse.cursor = MouseCursor.ARROW;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment