Can anyone help me please?
I have six movie clips, in a navigation movie clip, on the main time line, here they are:
_root.nav._home
_root.nav._ourFirm
_root.nav._onepartnership
_root.nav._services
_root.nav._career
_root.nav._contactus
In _root.nav._ourFirm it has a sub navigation which when open passes a variable called menu.
when opened menu = “open”
when closed menu = “closed”
(the variable comes through fine, I’ve traced it)
I’m trying to get the other clips to close the sub menu, if the menu variable passed is open and do nothing if the variable has not been set or is “closed” but I cannot do it… Ahhhhh!!! Sob, sob… Please help me…
This is what I’ve tried on a button within the _root.nav._onepartnership clip for instance
on (rollOver) {
if (_root.nav._ourFirm.menu == open) {
_root.nav._ourFirm.gotoAndPlay("out");
}
}
Below is the trace that happens if this: _root.nav._ourFirm.gotoAndPlay(“out”); happened. It works fine without the if stuff by the way.
var menu = “closed”;
trace(_root.nav._ourFirm.menu);
Please find the .swf attached.