Hey Everyone,
I’ve been working with this file for quite some time now.
I have several buttons in this file - for example, general information. From this button (actually mc, using hittest to function as a faux button), another menu springs out.
This menu overlaps the button underneath it.
The problem I’ve been having is that, when the submenu pops out, the user is still able to activate the buttons beneath the submenu (it overlaps the other “main” buttons).
** My solution was to “hide” the movieclips that are overlapped by the submenus, like this:**
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.btn_gen.direction = "ff";
_root.btn_cal._visible = false;
_root.btn_foot._visible = false;
_root.btn_inj._visible = false;
} else {
_root.btn_gen.direction = "rr";
_root.btn_cal._visible = true;
_root.btn_foot._visible = true;
_root.btn_inj._visible = true;
}
}
Basically, turning off the movie clips that I know are being
… removing them from the equation until the active mc has been moused off.
However, this only seems to work on the button that is set to be all the way in the *back *of the stacking order: -16383 (I’ve achieved this stacking order by setting the mc to “send to back”).
once I move it away from the back layer, it no longer functions as I anticipated it would by coding it the way I did.
I’m wondering if there’s a way to dynamically change the stacking order (I’ve been messing with this all day but with no success) or if there’s a completely different and better way to set this up.
I’ve been looking at it for so long, I can no longer see any other way to do it other than the method I’ve just explained.
An interesting challenge for me… but probably something easy for the lot of you.
**Please **- I really need help!
- Tom