View Full Version : Detecting Mouse Outside of SWF?
fat-ron
August 17th, 2005, 08:43 AM
Im having a problem with some rollover code im using for a movieClip, basically if the mouse runs over to fast the rollover animation is played but not the rollout as the mouse has left the SWF area. Is there anyway of telling where the mouse is on the screen so i can run a check to see if its in the swf or not and then run code accordingly. That make sense?
Cheers.
coop
August 17th, 2005, 08:46 AM
you could use movieClip.hitTest
mathew.er
August 17th, 2005, 08:57 AM
the problem is, that you cant say if mouse is not over swf file or not. flash player will still think its on the last spot, where it was, before it left stage.
//edit: try to trace mouse position or attach mc to mouse to see where the mouse is, if you leave area of swf file, it will stay still while mouse pointer wont be on the stage again
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.