Support - Forum aa

« Back to Support
Pre-Release 2.0 » Flash player 11.2 mouselock

» Flash player 11.2 mouselock

Posted on 02.04.2012 by newaxekub, newaxekub
mouseLock is not at the center.
But it is at the top left corner.
I can not use the EventClick.
Because it is not in the center.

http://u1.popcornfor2.com/show/eaQ19976.jpg
|
Share this
 
Reply By Nehmad, Ariel 02.04.2012
you need to use the MouseCollision class in this case.

you can find an example here.
Reply By newaxekub, newaxekub 02.04.2012


"you need to use the MouseCollision class in this case.

you can find an example here." Ariel N.


But my mouse is lock on top left corner.
Reply By newaxekub, newaxekub 02.04.2012
FPS game will need to lock mouse.
It is usually the center lock.
But Flash Player 11 lock the upper left corner.
The cursor to the upper left corner. Instead of centering.
If you want to click it, you have to scroll to the top left corner.

The Mouse Event is can not used.
Because the mouse is to lock in the corner.
Reply By Nehmad, Ariel 02.04.2012
the mouse collision class takes an x, y position...so you can pass to it the center of the screen.
Reply By newaxekub, newaxekub 02.04.2012
Ho! am sorry
Thank you very much