AS3 linking menus

Simple.

Two separate MC’s (menu_mc and menu2_mc) both export to the MainMenu.as class. Both contain buttons that export to the OButton.as class. Buttons.fla base class is Main.as.

What I want is for menu_mc and menu2_mc to work like partners. When I ROLL_OVER the buttons of one I want the other MC to “hear” it and react the same way. How do I make them “aware” of one another?

I have a friend who pointed me in this direction:
"First off, both the top menu and the middle menu need to become aware of each other. I don’t actually have flash, so I can’t see how this is set up exactly within the FLA, but you need to do something like this within the class which extends the root:

var m1:MainMenu = mySecondMenuClip;
var m2: MainMenu = myFirstMenuClip;

m1.setLinkedMenu(m2);
m2.setLinkedMenu(m1);

setLinkedMenu can add a listened to the other menu so that every time you make a new selection, it knows to update its selection. You have to figure out the details :wink:

Secondly, your OButton class needs to broadcast when the mouse rolls over it. Then you can use that pairing above to have both menus rollover in tandem."
…AND, while I understand something of what he is talking about, I am having trouble getting my mind (and my code) around it. As you may see I have begun to implement the “setLinkedMenu” method but I am not really sure what it is supposed to do OR if I even hav it in the right place.

Thanks for any help you may offer.
Here are my classes