Home
» Other Stuff » Mouse not working with MovieClip
Mouse not working with MovieClip
| July 4, 2008 | Posted by The Futtock under Other Stuff |
Comments off
|
Clicking not working in AS3?
If you change your mouse to a movieclip by say using: Mouse.hide(); and then simply make the movieclip’s x and y equal to the mouse x and y (stage.mouseX & stage.MouseY) you will run into trouble if the point mouseX and mouseY are not clear. You will always be clicking on your new “mouse cursor” movieclip.
Make sure the exact x and y are clear, so a new arrow for example would be placed just to the left and just down from the mouseX and mouseY point.
This is in actionscript 3.0. I can’t remember how this works in 2.0.
Recent Comments