cma2007
07-22-2011, 01:22 PM
I have created a custom cursor that I'm having trouble pointing correctly to small buttons. It seems that the "pointer" is about 10 pixels to the right of where the button is. On larger buttons, it really isn't a problem. But on one particular small button, the user has a lot of trouble hitting the button. Here's my code for creating the custom cursor.
stage.addEventListener(MouseEvent.MOUSE_MOVE, redrawCursor);
stage.addEventListener(Event.MOUSE_LEAVE, hideCursor);
Mouse.hide();
function redrawCursor (event:MouseEvent):void {
myCursor_mc.visible = true;
myCursor_mc.x = event.stageX;
myCursor_mc.y = event.stageY;
}
function hideCursor (event:Event):void {
myCursor_mc.visible = false;
}
///////////////////////////////////////////////////////////
I wish I could post the page here for you to see it (says I have to have at least 50 posts in order to post a link). If someone can tell me how to post a link, I could show you the problem.
Thanks - Charlie
stage.addEventListener(MouseEvent.MOUSE_MOVE, redrawCursor);
stage.addEventListener(Event.MOUSE_LEAVE, hideCursor);
Mouse.hide();
function redrawCursor (event:MouseEvent):void {
myCursor_mc.visible = true;
myCursor_mc.x = event.stageX;
myCursor_mc.y = event.stageY;
}
function hideCursor (event:Event):void {
myCursor_mc.visible = false;
}
///////////////////////////////////////////////////////////
I wish I could post the page here for you to see it (says I have to have at least 50 posts in order to post a link). If someone can tell me how to post a link, I could show you the problem.
Thanks - Charlie