tellTarget alternative?

I know that tellTarget is deprecated in Flash MX, what is the best alternative?

_root.yourMovieClip.gotoAndPlay(frame#)

That line replaces tellTarget. It is so much easier, and better in my opinion.

with(target){
}

is the ‘alternative’ though you cannot set variables/properties within the with, you can only reference and use them (or re-set, just cant make new ones)

Is the with statement really worth it with the dot syntax version of _root.movieClip.gotoAndPlay(frame#) and such?

not usually. I hardly ever use with, its best with long target names though. However, in that case, I typically just set a small variable name to be the long path and use that instead

my = _root.box.instrument.player.girlfriend;
my._x += my.speed;

etc

Yeah, that is what I do too.

I have never used a with statement, even though I knew how to use them, just never have. My methods were always easier.

thanks guys, it works great!