PDA

View Full Version : problems with _Root.


project-09
05-27-2004, 07:42 PM
Hey Guys,
I was using _Root. to play a frame within' another MC. When I tested this on a black FLA document it worked fine. However, when I redid this where I needed to do it it didn't work. Turns out the way that I'm doing it, the _Root. doesn't work if the button/MC is inside of another MC.

So basically everything works as long as its on the main timeline, but I need it to work for a button & MC that are embedded inside of another MC. Here is the AS i am using for the button that controls the MC. Lets say the instance name of the MC i am controlling is "circle". As flexible as flash is i'm sure there's a way, can i give it a depth would that work???

on (release) {
_root.circle.gotoAndStop(2);
}

I'm willing to do anything for help so if u want I will post an FLA of my problem hehe :).

Cota
05-27-2004, 08:31 PM
Is circle inside another MC? or is it on the maintime line?

project-09
05-27-2004, 09:26 PM
Greetings Cota,
Yeah Circle will be inside another MC.

Cota
05-27-2004, 10:17 PM
what is the instance name of that movieclip? The basic theory is, you have to path for each movieclip. For example, if you MC2, inside of MC2, inside of MC1, the path would be _root.MC1.MC2.MC3.gotoAndPlay

project-09
05-28-2004, 12:32 AM
cool, thanks for the good advice. You helped me solve my problem Cota. That was quick.