Call upon movie clip further up!

Hi all.

I have a movie clip and a movie clip inside that which I wish to call upon. I would normally use :

[AS]
_root[“name”].gotoAndPlay(2);
[/AS]

however it is further up the chain, you would most likeley call it the child of the parent. I am unsure how to do this, could anyone advise me. I need to play the clip inside a movie clip, so the script above would not work unless i was playing the parent movie. so what is the action script for the next level up.

please advise

Trev

no.

it would be:

tellTarget("_root.name"){
gotoAndPlay(2);
}

Thanks for replying, no i understand. the action script i used would work fine, its just the movie clip is inside anouther movie clip, so i need to know the next stage up from that if you dont mind

cheers

trev

If you are using MX you should use dot syntax too. I think you just need to target the movieClip correctly. If you have a movieClip (dog) in a movieClip (doghouse) and doghouse is on your main stage; you want to animate the dog by telling it to play frame two, you would say:


_root.doghouse.dog.gotoAndPlay(2);

That should do it.

ok, easy.
heres a quick diagram:


_root.
  |
  |
  |______First Mc(called: one)
Path: _root.one      |
                               |
                               |_______ Second Mc(called: two)
                                path: _root.one.two     |
                                                                     |
                                                                     |_______Third MC (called: three)
                                                                     Path: _root.one.two.three

you get the idea, yes?

That did it, thank you!

what a guy!

No problem.