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;
}
trace("b = " + b);
}
}
Output:
a = 9
b = 9
b = 8
b = 7
b = 6
b = 5
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com