Hi all :)
The script below works sweatly ...
But what would be the proper Flash 5 syntax?Code:tellTarget(["_root.lives.man" + lives]){
gotoAndPlay(2);
}
TIA
/podenphant
Printable View
Hi all :)
The script below works sweatly ...
But what would be the proper Flash 5 syntax?Code:tellTarget(["_root.lives.man" + lives]){
gotoAndPlay(2);
}
TIA
/podenphant
_root["lives.man" + lives].gotoAndPlay(2);
hmm ...
for some reason it doesn't work - this would seem to be kiddy stuff ... :(
The variable lives is in the _root.
The instance lives is also in the _root. Renaming doesn't help.
got some helpful thoughts?
/poden
If the variable lives is in the _root level then the syntax would be:
_root["lives.man" + _root.lives].gotoAndPlay(2);
Hi julianj
I don't understand, at all, why your suggestions doesn't work.
If I can mail you the fla you can spot what I am missing?
/poden
It ought to work. Send it to:
[email protected]
and I'll have a look.
Of course the main reason it didn't work is because I answered the question incorrectly! It should have been:
_root.lives["man" + _root.lives].gotoAndPlay(2);
Sorry, half asleep.