PDA

View Full Version : tell target from flash5 to flash4



SkyWickenden
September 4th, 2002, 11:54 AM
Hi,

I'm trying to make a script in flash5 work in flash4, and I am struggling with the tell target.

I have a sub movie with a button that tells one of several other submovies to change frames, it does this by storing the sub movies name in a variable in the main movie.

on (release) {
tellTarget ("_root." + _root.strMovieName) {
gotoAndPlay ("exit");
}
}

works fine in flash5

I've tried all sorts of work arounds, but can't get them to work yet!

Kitiara
September 4th, 2002, 12:26 PM
I don't know much about Flash 4, as I started learning with 5. But I'm pretty sure the tellTarget action wasn't too hot in 4, and it's different in later versions. There could be another method you need to use.

pom
September 5th, 2002, 02:25 AM
I don't think the telltarget is the touble. It might. But for sure Flash 4 doesn't know what _root means. You have to use ../ and stuff like that (not sure exactly, you'd better wait for one of the oldtimers to answer).

pom :asian:

upuaut
September 5th, 2002, 02:29 AM
you're on the mark Pom. I believe it works like this

/ is in the same object as the call is coming from
../ is either in the timeline above the call or the root I can't rememeber which.

pom
September 5th, 2002, 02:41 AM
Sorry that I called you oldtimer :)

upuaut
September 5th, 2002, 02:50 AM
lol.. I didn't even notice.

to tell the truth, I did so little a/s during 4.0 that I can't really be an old timer. We do have a couple of people around here who might know for sure though.

I could have sworn that there was an equivilant to _parent but I can't for the life of me recall it.