Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Mouse events fail to trigger if mouse move too fast

New Here ,
Nov 18, 2009 Nov 18, 2009

It has been awhile since I have worked in flash.  Right now I am working on something where I would like a panel to disappear when someone mouses off the stage.

stage.addEventListener(Event.MOUSE_LEAVE, leaveHandler);

  It usually works fine but if I move my mouse really fast it doesn't fire.

I have also tried the same thing using a custom invisible button that surounds the perimeter of the stage and I have tried ROLL_OVER and  MOUSE_OVERand again, if I do it too fast my event doesn't fire (I am using trace).

I can't find anything on the net about this - is this typical of flash that if you move your mouse too fast you break it?  Do I need to increase my frame rate (I would really rather not because I have perfectly timed animations - I am at 30 frames per second)

Any help is appreciated!!!!

TOPICS
ActionScript
811
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 18, 2009 Nov 18, 2009
LATEST

hrmmm dont know how to fix that but its a slight glitch........dont know if that can be fixed in flash......but you could set up a listener that fires every second or frame i suppose...that tests to see if the mouse pointer is over swf and trigger when ever its not.....maybe that will do the trick....

and what i mean is like an ENTER_FRAME type of event....that jus keeps firing...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines