Overlapping Buttons
is there way flash fire button events button underneath else? have popup menu , right have invisible buttons around detect when user moves off of menu , should closed. menu in corner of movie invisible buttons work on 2 sides of menu, other 2 sides can move mouse out of flash player , menu stay up. i'd fix putting invisible button on top of menu , detecting when mouse leaves it. got work quite except buttons in popup menu no longer clickable , don't have rollover effect because beneath invisible button , no rollover or other events fire them. if if put layer invisible button below layer real buttons, events no longer fire invisible button , menu never closes. suggestions?
movieclips have rollover , rollout events, use mcs instead of invisible buttons. or, simpler, make popup menu mc (if isn't already), , use rollover events of mc check if mouse in area:
menu.onrollout = function(){
// hide menu
}
another way: use hittest or custom function checks if mouse inside coordinates of menu.
onmousemove = function(){
if(_xmouse < menu._x || _xmouse > menu._x+menu._width || _ymouse < menu._y || _ymouse > menu._y+menu._width){
// mouse outside, hide menu
}
hth,
blemmo
menu.onrollout = function(){
// hide menu
}
another way: use hittest or custom function checks if mouse inside coordinates of menu.
onmousemove = function(){
if(_xmouse < menu._x || _xmouse > menu._x+menu._width || _ymouse < menu._y || _ymouse > menu._y+menu._width){
// mouse outside, hide menu
}
hth,
blemmo
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment