Tuesday, October 7, 2008

Updated Cursor Code

I found a better custom-cursor code that's smoother and worked much more compatibly with my movies; just put this in a separate folder in a movie clip that will be your new cursor:


import flash.events.MouseEvent;
stage.addEventListener(MouseEvent.MOUSE_MOVE , movecrs);
function movecrs(event:MouseEvent) {
cursor.x = mouseX;
cursor.y = mouseY;
cursor.visible = true;
Mouse.hide();
}

No comments: