PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
AS 2 For loop not reading my var.
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: For loop not reading my var.

  1. #1
    Junior Member
    Join Date
    May 2005
    Location
    Denver
    Posts
    9

    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

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    more details, please?
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #3
    Junior Member
    Join Date
    May 2005
    Location
    Denver
    Posts
    9
    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

  4. #4
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    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

  5. #5
    Junior Member
    Join Date
    May 2005
    Location
    Denver
    Posts
    9
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center