tellTarget ("...");

heya!

I have in _root 1 movie that have 2 movies inside it, like this:

  • mainm
    - symb
    - symb2

I have a button on _root and i want to take action in symb.

I try this int 2 ways:

> mainm.symb.gotoandplay(2);

> tellTargert (“mainm/symb/”) {

gotoandplay(2);
}

but doesn’t work…

any sugestion??

thks

_root.mainm.symb.gotoAndPlay(2);

Should work !!
(if it doesn’t, you should check if you’ve setup the instancenames correctly!)

  1. Please use the [**AS][/**AS] tags to show code… it is much easier on the eyes.

  2. is mainm the main movie clip or the main movie altogether?

If it is the main movie altogether, the syntax would be… [AS]symb.gotoAndPlay(2);[/AS]

But if mainm is a movie clip symbol on the _root timeline, then I see nothing wrong with your code since the button is on the _root timeline as well (and tellTarget it deprecated so don’t even worry about that anymore)

ok, sorry about that

the mainm is a movie clip symbol on the _root timeline but i have done a motion tweent with it and i think that was the reason why it didn’t work.

thks :slight_smile:

If you have done a motion tween to the objects within the clip then that might be it… you must make sure that all the clips in the keyframes have the right instance name. If you tween a movie clip symbol first without assigning an instance name to it, and then go back and assign an instance name to the first keyframe of the clip, then only that clip gets the instance name and the rest have unassigned instance names therefore cannot be targeted.

Possibly something like this is the case with you?

yes, exactly! lol

thks :wink: