A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: for loop with stop(); command?

  1. #1
    Senior Member
    Join Date
    Dec 2000
    Posts
    336

    for loop with stop(); command?

    hi

    does anyone know how to make a for loop with the stop command? sort of like below? it doesn't work though:

    for (a=1; a<=10; a++) {
    "_level0.mc"+a+".stop()";
    }

    thanks!

  2. #2
    Member
    Join Date
    Aug 2001
    Posts
    53
    It needs to look like this:
    for (a=1; a<=10; a++) {
    _level0["mc"+a].stop();
    }
    The array access operator allows you to resolve a string to an identifier.

  3. #3
    Senior Member
    Join Date
    Dec 2000
    Posts
    336
    hi trekboy. actually that DID work. thanks dude!
    Last edited by pbjpb1; 03-16-2004 at 04:27 PM.

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