-
I've a number of varibles like this
player0="name"
player1="another"
player2="more"
etc
etc
and I'd like to deal with these in a loop
ie
for (i=0; i<10; i++)
{
this="player" + i;
_root["msg"]=this
}
but this just gives me "player0", "player1" etc in msg.. and not "name" , "another"
how can I see the Substitution for "player0" ?
-
this = eval("player" + i);
-
Dunno if this will help but hey, here goes
for (i=0; i<10; i++)
{
_root["msg"]=["player" + i];
}
I guess... dunno... maybe...
Good Luck...
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
|