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
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;
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("
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
4 matches
Mail list logo