MC in a MC

Hey Guys,
Here is my basic build up
Menu (MC)
     Btn1
     Btn2
     Btn3
Content (MC)
     Frame1
     Frame2
     Frame3
I want the buttons in the MenuMc to control the frames in the ContentMc. Whats wrong? (This is the code in the MenuMC, of course I also have the eventlisteners):
function home(e:MouseEvent):void
content.gotoAndStop(1);
function strategy(e:MouseEvent):void
content.gotoAndStop(2)
function about(e:MouseEvent):void
content.gotoAndStop(3)

you say
This is the exact code as it appears in the menuBar:
function home(e:MouseEvent):void
contHolder.gotoAndStop("home");
var menuMoveHome:Tween = new Tween (menuHighlight, "x", Strong.easeInOut, menuHighlight.x, 72, 1, true);
if that code is IN menuBar, then it is looking for contHolder INSIDE menuBar. if contHolder is not inside menuBar and is in fact on the stage, you have to create the proper path from INSIDE menuBar to contHolder on the stage.
This is one of the reasons it is preferred to have all your code on frame 1 of the timeline and not nested inside clips.

Similar Messages

Maybe you are looking for