does as3 support loop label?
actionscript-3, label, loops
Solution
Yes, you can use `label:` in front of the loop like this:
// Label this loop 'outer'.
outer: for(var i:int = 0; i < 100; i++)
{
inner: for(var j:int = 0; j < 100; j++)
{
if(j === 15)
{
// Break the outer loop.
break outer;
}
}
}
This also works for `continue`.
Problem
I have a herarchery of loop and want to quit all parent loop, do AS3 support labels like we have them in php ? ``` for(var i:int=0;i<100;i++) { for(var j:int=0;j<100;j++) { if(j == 15){ i = 99; break; } } } ```