|
-
Hi all 
The script below works sweatly ...
Code:
tellTarget(["_root.lives.man" + lives]){
gotoAndPlay(2);
}
But what would be the proper Flash 5 syntax?
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|