Scuba_Steve
08-09-2007, 09:31 PM
Kinda irritating but probably something stupid i'm doing...
For a training app i have a menu with 4 links that take you somewhere else on the timeline. I also have an MC that when clicked shows a popup window using the mc._visible = true method.
here's the code for the 4 menu items. this function resides on the main timeline. after i define the function, I call it.
enableNavigation = function() { // sets up our menu navigation
mainmenu_mc.mainmenu_item1_mc.onRelease = function() {
trace (" |__ Home selected");
_root.gotoAndStop("item1");
};
mainmenu_mc.mainmenu_item2_mc.onRelease = function() {
trace (" |__ Overview selected");
_root.gotoAndStop("item2");
};
mainmenu_mc.mainmenu_item3_mc.onRelease = function() {
trace (" |__ VFS Modules selected");
_root.gotoAndStop("item3");
};
mainmenu_mc.mainmenu_item4_mc.onRelease = function() {
trace (" |__ Safety & Operational selected");
_root.gotoAndStop("item4");
};
};
enableNavigation();
now, to prevent my links from being clickable when the popup mc is visible, i wrote a disableNavigation function:
disableNavigation = function() { // disables our menu navigation
mainmenu_mc.mainmenu_item1_mc.enabled = false;
mainmenu_mc.mainmenu_item2_mc.enabled = false;
mainmenu_mc.mainmenu_item3_mc.enabled = false;
mainmenu_mc.mainmenu_item4_mc.enabled = false;
viewallarticles_btn.enabled = false;
};
here's the problem... if i comment out the disableNavigation function, the navigation works just fine, although i can click the menu items right thru the overlying popup which is not what i want.
as soon as i uncomment out that disableNavigation function, the menu items don't work at all. doesn't make sense as all i did was define the "disable Navigation" function - not call it.
what gives? Thanks in advance!
For a training app i have a menu with 4 links that take you somewhere else on the timeline. I also have an MC that when clicked shows a popup window using the mc._visible = true method.
here's the code for the 4 menu items. this function resides on the main timeline. after i define the function, I call it.
enableNavigation = function() { // sets up our menu navigation
mainmenu_mc.mainmenu_item1_mc.onRelease = function() {
trace (" |__ Home selected");
_root.gotoAndStop("item1");
};
mainmenu_mc.mainmenu_item2_mc.onRelease = function() {
trace (" |__ Overview selected");
_root.gotoAndStop("item2");
};
mainmenu_mc.mainmenu_item3_mc.onRelease = function() {
trace (" |__ VFS Modules selected");
_root.gotoAndStop("item3");
};
mainmenu_mc.mainmenu_item4_mc.onRelease = function() {
trace (" |__ Safety & Operational selected");
_root.gotoAndStop("item4");
};
};
enableNavigation();
now, to prevent my links from being clickable when the popup mc is visible, i wrote a disableNavigation function:
disableNavigation = function() { // disables our menu navigation
mainmenu_mc.mainmenu_item1_mc.enabled = false;
mainmenu_mc.mainmenu_item2_mc.enabled = false;
mainmenu_mc.mainmenu_item3_mc.enabled = false;
mainmenu_mc.mainmenu_item4_mc.enabled = false;
viewallarticles_btn.enabled = false;
};
here's the problem... if i comment out the disableNavigation function, the navigation works just fine, although i can click the menu items right thru the overlying popup which is not what i want.
as soon as i uncomment out that disableNavigation function, the menu items don't work at all. doesn't make sense as all i did was define the "disable Navigation" function - not call it.
what gives? Thanks in advance!