flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Young <flashflex...@gmail.com>
Subject Re: Understand when mouse stop
Date Thu, 26 Dec 2013 02:57:46 GMT
There's no way to know when it's stopped, because you can't define it
clearly, the only way to define it is to set an interval during which
there's no MouseMove event dispatched, then dispatch a MouseStopped, but if
you set the interval too small, every MouseMove will have a MouseStop event.

I think use EnterFrameEvent will be practical, if there was any MouseMove
in last frame and none the next frame, treat it as a MouseStop.

On Tue, Dec 24, 2013 at 5:15 PM, Alex Harui <aharui@adobe.com> wrote:

> Enter_frame gets dispatched all the time.  There's no way to immediately
> know if the mouse is "stopped".  The user could move the mouse at the very
> moment you check.  You pretty much have to wait for some amount of time to
> see if there is another mouseMove or not.   The SystemManager dispatches
> an "idle" event when there is no input for 1 second.  Is that what you
> want?
> http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/mx/mana
> gers/SystemManager.html#event:idle
> On 12/24/13 7:03 AM, "oscaroxy" <scriviaoscar@yahoo.it> wrote:
> >Do exist a event/method in order to understand when mouse stop?
> >I use move mouse event and I would run a method after move mouse event and
> >when the mouse's stopped!
> >I tried by enter_frame, but the method run more that one time...
> >thanks
> >
> >
> >
> >--
> >View this message in context:
> >
> http://apache-flex-users.2333346.n4.nabble.com/Understand-when-mouse-stop-
> >tp4283.html
> >Sent from the Apache Flex Users mailing list archive at Nabble.com.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message