Telltarget swf

Hi,

How can I control a swf if I load it into another swf? So tellTarget or something but

tellTarget (“container”) {
stop();
}

doesn’t work…

Thanx

forget tellTarget (that was flash 5) - try something like this:

_root.container.yourMC.gotoAndPlay(1);

I use this to load the swf:


_root.createEmptyMovieClip("container", 1);
loadMovie("car.swf", "container");
container._x = -100;
container._y = -100;

that’s fine…

using _root.container.yourMC.gotoAndPlay(1);

yourMC would be the name of a movieclip inside your car.swf!

Yeah, I know. (duh;))
But it’s the car.swf that has to be controlled so I deleted .yourMC and it doesn’t work

controlled!?
…in wich way?

would you like to move it around using the arrow keys or something like that!?

next en prevFrame

*Originally posted by jerry *
**forget tellTarget (that was flash 5) - try something like this:

_root.container.yourMC.gotoAndPlay(1);

**

Actually tellTarget was Flash 3 and 4 and was deprecated in Flash 5 with the new dot syntax :wink:

I believe 5 still used it often because many Flash 5 coders were used to Flash 4 syntax and such. This is just my own theory, I don’t know exactly why so many Flash 5 tutorials use tellTarget instead of the dot syntax version.