Return to Snippet

Revision: 40493
at February 3, 2011 01:02 by JaaQ


Initial Code
var a:uint, b:uint = 0;
loopA:for(a = 0; a < 10; a++)
    loopB:while(b++ < 100)
        loopC:for each(var c:uint in [0,1,2,3])
            break loopB;
 
trace(a, b, c); // traces "10 10 0"

Initial URL

                                

Initial Description
Give your for-loops a label so you can break them individually

Initial Title
Labelling your For-loops in AS3

Initial Tags
actionscript

Initial Language
ActionScript 3