Problems with IF and variable passing across movieclips

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)

var menu = “closed”;
trace(_root.nav._ourFirm.menu);

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”);
}

}

It looks like it works in the .swf but the nav sections pop up the sub nav and close it when it’s not open, that is the problem.

not very usefull to get a look at the swf & not the code…
anyway, i think from the looks that your pb is in sending
ourFirm.gotoAndPlay(“out”); which i guess should hapen only if menu == open, even when menu != open, but as to why that happens…?
i’d have to see your code.