Re: [Flashcoders] "named" while loops in AS3

2007-04-11 Thread Andrés González & Aragón
Something like this with ':' to create the label: var n:int=0; LOOP_A: while(n < 10) { var z:int=0; LOOP_B: while(z<20){ if(n == 3){ break LOOP_A; } z++; } n++; } You can do it with any block of code like this: chido : { trace("Quantium Ru

RE: [Flashcoders] "named" while loops in AS3

2007-04-11 Thread Steven Sacks | BLITZ
You'll have to set a flag. var a:Number = 10; var b:Number = 10; var breakLoop:Boolean = false; while (a--) { if (breakLoop) break; trace("a = " + a); while (b--) { if (b < 5) { breakLoop = true; break;

Re: [Flashcoders] "named" while loops in AS3

2007-04-11 Thread Ignacio Marabotti
continue Andrés González & Aragón <[EMAIL PROTECTED]> escribió: Something like this with ':' to create the label: var n:int=0; LOOP_A: while(n < 10) { var z:int=0; LOOP_B: while(z<20){ if(n == 3){ break LOOP_A; } z++; } n++; } You can do it with any block of code like this: chido : { trace("

Re: [Flashcoders] "named" while loops in AS3

2007-04-11 Thread keith
Ignacio Marabotti wrote: continue Very cool stuff! -- Keith H -- Andrés González & Aragón <[EMAIL PROTECTED]> escribió: Something like this with ':' to create the label: var n:int=0; LOOP_A: while(n < 10) { var z:int=0; LOOP_B: while(z<20){ if(n == 3){ break LOOP_A; } z++; } n++; } Yo