I’ve got a flash movie that is a menu with a photo that is approximatly 700x300. I want an action that will trigger when the mouse leaves the flash movie all together. Is this possibe?
Is there a way to have have my movie know when the mouse is not in it and trigger something?
[QUOTE=TheCanadian;1985502]Or you might be able to use JS to detect when the div the SWF is in loses focus. Not really sure if this is possible though.[/QUOTE]Wouldn’t you have to actually click outside the SWF to lose focus?
I used the wrong term, you can use this script to detect when the mouse leaves the div:
In FLA:
//requires TextField with instance name mouseStatus
import flash.external.ExternalInterface;
ExternalInterface.addCallback("mouseLeave", this, function ():Void {
this.mouseStatus.text = "mouse is out";
});
ExternalInterface.addCallback("mouseEnter", this, function ():Void {
this.mouseStatus.text = "mouse is in";
});
okay everyone is getting extremly complex for no reason why not something like
if(_xmouse<=5 or _xmouse>=690){
/actions/
}
would that not work if you just went a little bit inside of the borders and repeat that code for both x and y mouse coordinates. i dont see why that wont work.