Question
Capture mouse events off stage?
HI,
I am trying to make a simple game where an object follows the mouse cursor. Problem is that as soon as the cursor exits the stage area the Flash cannot track the mouse position anymore.
There are two behaviors I want to implement: One where objects always follow the mouse, and another where the cursor hits the edge of the stage and the stage pans. Both behaviors depend on detecting mouse location outside of the stage area.
Does anyone have pointers (no pun intended) how to track the mouse outside of the stage area? Using Flash actionscript or maybe with Java? Or is there a way to get a fullscreen mode for flash so the cursor cannot exit the stage?
I have searched the googletron for solutions in vain.
Thanks,
BarryFM
I am trying to make a simple game where an object follows the mouse cursor. Problem is that as soon as the cursor exits the stage area the Flash cannot track the mouse position anymore.
There are two behaviors I want to implement: One where objects always follow the mouse, and another where the cursor hits the edge of the stage and the stage pans. Both behaviors depend on detecting mouse location outside of the stage area.
Does anyone have pointers (no pun intended) how to track the mouse outside of the stage area? Using Flash actionscript or maybe with Java? Or is there a way to get a fullscreen mode for flash so the cursor cannot exit the stage?
I have searched the googletron for solutions in vain.
Thanks,
BarryFM