I have a banner that when the user move the mouse out of it, a function will fire which will take you to some frame.
My problem with this is if the mouse is already out of the banner without ever hitting the banner in the first place then the function to take you to some frame will fire. So i don’t want this to happen.
If the mouse is outside the banner without ever being there previously then no function should be call. the mouse has to be in the banner for then the onEnterFrame to be working.
I hope this is not confusing… please advice.
rolloutMC.onEnterFrame=function(){
if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
endAnimation();
}
};
function endAnimation() {
rolloutMC.onEnterFrame = null;
gotoAndPlay('end');
hand_mc._visible = false;
Mouse.show();
tv_mc.enabled = false;
mobile_mc.enabled = false;
mouse_mc.enabled = false;
}