Hi all,
I have an... intersting problem. Something tells me it is a really simple one.. I hope so
I have been build a full site in flash, and I am now working on the menu for the index page. I have dropdown menus that will (eventually) slide down and reveal new options each time a menu option is clicked. The problem it, it only works once for each button! When I hit the first menu option, it opens the sub-options (exactly like it should). I then press the second menu option, and it closes the sub-menu of the first, and opens the submenu of the second (again, exactly like it should) the problem occurs when I then press the first or second menu option a second time. Nothing happens. I have even put in a trace, just to see if the button-press script actually plays, and I get nothing.
Is there a way I need to reset the buttons when they close their respective sub-options? Below is the main actionscript of my movie.
openmenu = _root.nothing;
_root.About_mc.Aboutb_btn.onPress = function () {
openmenu.play();
openmenu = this._parent;
openmenu.gotoAndPlay("Over");
};
_root.Classes_mc.Classes_btn.onPress = function () {
openmenu.play();
openmenu = this._parent;
openmenu.gotoAndPlay("Over");
};
Thanks for your help!
I have an... intersting problem. Something tells me it is a really simple one.. I hope so
I have been build a full site in flash, and I am now working on the menu for the index page. I have dropdown menus that will (eventually) slide down and reveal new options each time a menu option is clicked. The problem it, it only works once for each button! When I hit the first menu option, it opens the sub-options (exactly like it should). I then press the second menu option, and it closes the sub-menu of the first, and opens the submenu of the second (again, exactly like it should) the problem occurs when I then press the first or second menu option a second time. Nothing happens. I have even put in a trace, just to see if the button-press script actually plays, and I get nothing.
Is there a way I need to reset the buttons when they close their respective sub-options? Below is the main actionscript of my movie.
openmenu = _root.nothing;
_root.About_mc.Aboutb_btn.onPress = function () {
openmenu.play();
openmenu = this._parent;
openmenu.gotoAndPlay("Over");
};
_root.Classes_mc.Classes_btn.onPress = function () {
openmenu.play();
openmenu = this._parent;
openmenu.gotoAndPlay("Over");
};
Thanks for your help!