PDA

View Full Version : tellTarget ("...");



Drunken
August 18th, 2003, 11:54 AM
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

Eric Jr.
August 18th, 2003, 12:03 PM
_root.mainm.symb.gotoAndPlay(2);
Should work !!
(if it doesn't, you should check if you've setup the instancenames correctly!)

lostinbeta
August 18th, 2003, 12:05 PM
1) Please use the 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... symb.gotoAndPlay(2);

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)

Drunken
August 18th, 2003, 12:17 PM
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 :)

lostinbeta
August 18th, 2003, 12:23 PM
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?

Drunken
August 18th, 2003, 12:29 PM
yes, exactly! lol

thks ;)