A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Break embedded loops simultaneously

Hybrid View

  1. #1
    Bacon-wrapped closures Nialsh's Avatar
    Join Date
    Dec 2003
    Location
    Houston!
    Posts
    338
    Thanks! I didn't think of putting it in a funciton, but that should work well since I use it twice anyway.

  2. #2
    Junior Member
    Join Date
    Dec 2008
    Posts
    1
    consider also changing the outer loop's variable to something that will break it.
    i.e.
    Code:
    for ( i=0; i<40; i++ ) {
        for ( k=0; k<100; k++ ) {
          if (somecondition) {
            i = 40;
            break;
          }
        }
    }

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