So I have two navigations a main and a sub.
I have a simple clipevent to make it so that when you are on the main nav you know where you are…
so the name of the main nav is .clicked
[SIZE=“2”]
on (press){
_root.clicked = this._name;
_root.gotoAndStop(30);
}
onClipEvent (mouseUp){
if (_root.clicked == this._name){
this.gotoAndStop(2);
this.enabled = false;
}else{
this.enabled = true;
this.gotoAndStop(1);
}
}[/SIZE]
For the sub-nav its the same thing but insted its called .clickedNav
[SIZE=“2”]
on (press){
_root.clickedNav = this._name;
_root.work_content_mc.loadMovie(“work/skatena.swf”, 10);
}
onClipEvent (mouseUp){
if (_root.clickedNav == this._name){
this.gotoAndStop(2);
this.enabled = false;
}else{
this.enabled = true;
this.gotoAndStop(1);
}
}[/SIZE]
My problem is that I want the first item on the sub nav to be selected and disabled, but there is some sort of conflict with the nameing or something.
I need the mouseUp event to disable the item selected on the main nav and the sub nav, then when you click around on the sub nav it will go to the correct item.
on (press){
_root.clickedNav = _root.work_menu_mc.reboundNav._name;
_root.clicked = this._name;
_root.gotoAndStop(20);
//the item to be loaded on the sub nav
_root.work_content_mc.loadMovie(“work/rebound.swf”, 10);
}
onClipEvent (mouseUp){
if (_root.clicked == this._name){
this.gotoAndStop(2);
this.enabled = false;
}else{
this.enabled = true;
this.gotoAndStop(1);
}
}
onClipEvent (mouseUp){
if (_root.clickedNav == _root.work_menu_mc.reboundNav._name){
_root.work_menu_mc.reboundNav.gotoAndStop(2);
_root.work_menu_mc.reboundNav.enabled = false;
}else{
_root.work_menu_mc.reboundNav.enabled = true;
_root.work_menu_mc.reboundNav.gotoAndStop(1);
}
}