Hi,
I’m making this little flash menu in a website, which contains 3 buttons (mc’s) that expand when the mouse is rolling over, and go back to normal when the mouse is out.
The flash is working fine. But since it’s an swf embedded in a website, the flash menu doesnt detect the mouse-out… If you move the mouse away too quick, flash keeps seeing the cursor on one of the buttons (keeps expanded).
This is the current mouse-over a.s.:
[color=blue][/color]
[color=blue]onClipEvent(enterFrame) {
if(this.hitTest(_root._xmouse,_root._ymouse)) {
if (_root.buttons.statuss == “closed”){
_root.buttons.play();
_root.buttons.ISP.play();
}
}
else {
if (_root.buttons.statuss == “open”){
_root.buttons.play();
_root.buttons.ISP.play();
}
}
}[/color]
[color=#0000ff][/color]
[color=black]Is there a better way to detect if the cursor is on top of the button?[/color]
Because appearently the hitTest gets stuck if you move the mouse outside the flash area.