-
For loop not reading my var.
Hi All, I know this is a simple question but I can not get it to work.
I need my for loop to read my var. I am passing in lets say B. I trace it out so I know it is avaiable, but my for loop will not read it. Any ideas?
for (q = 0; q < myLetters_array.length; q++)
{
eval(X)+_groups_mc[myLetters_array[q]].gotoAndStop(1);
}
Thanks
B
-
Prid - Outing
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
-
I am passing in B as a string and assigning it to X. X needs to be appended to rest of the code. My for loop runs(because I trace() it out), but it will not read X. I don't know what else you need?
for (q = 0; q < myLetters_array.length; q++)
{
eval(X)+_groups_mc[myLetters_array[q]].gotoAndStop(1);
}
Thanks
B
-
Prid - Outing
Actionscript Code:
for (q = 0; q < myLetters_array.length; q++) { _root[X+"_groups_mc"][myLetters_array[q]].gotoAndStop(2); }
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
-
Works like a charm -- Thank you
Tags for this Thread
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
|