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
-
One again, "can I use CC on two computers at the same time?" - in practice.
I know this has been asked before and all those threads are locked. Many asked the question, but I haven't found a satisfying answer yet. Can I multi task with CC? I want to have my laptop next to my desktop. And while I render, export or whatever my
-
OS X 10.5.x AirPort Dropout Issue - Problem with Apple
I am posting this as a new topic in the hope that Apple will take urgent action to resolve these AirPort dropout issues with OS X 10.5.x. Yesterday, I installed setup a new 40GB partition on my firewire drive and installed OS X 10.5.2 (from my origin
-
When iPhone locked and restored through sync with iTunes do you lose everything on the phone
When iPhone locked and restored through sync with iTunes do you lose everything on the phone
-
Transports to Production - Best Practice for Timing Imports
I would like to compile a list of possible issues/problems which can occur through Transporting requests to the Production system during Productive time, i.e. 'Business Time'. This is obviously against SAP recommendations that, little if not no user
-
How to control Error mechanism of READ_TEXT..?
Hi all, I am working on a report where, i am retrieving the Header text of Billing Document. I am retrieving Header texts of Billing Documents (VBRK-VBELN) using READ_TEXT Function Module. Now, if a Billing Document is not having header text, the rep