03-02-2011 11:57 AM
I know this has been mentioned before in the forum but I want to make sure MOUSE_MOVE event is fully supported by the PlayBook.
I am simulating a "custom" dragging behavior using this sort of mouseEvent and I would like to know if anyone has implemented this. I see in simulator it works fine.
Solved! Go to Solution.
03-02-2011 12:04 PM
Sure it's supported, why not? I don't recall any threads saying it might not be.
The thing is, MOUSE_MOVE events are generated at a high rate. In the simulator, that's at least 100Hz... way way more than you need if you're merely doing dragging.
In such a case, you're likely better off (if the standard startDrag() stuff isn't okay for you) to set/clear a flag in MOUSE_DOWN/MOUSE_UP, and in an ENTER_FRAME handler (which runs at your frameRate) you handle the dragging stuff if the flag is set.
(Also best to add/remove that enterFrame handler when not dragging, if you don't have another purpose for it.)
03-02-2011 12:12 PM