labeling loops

by jozefchutka
♥0 | Line 17 | Modified 2010-08-26 22:00:46 | MIT License
play

ActionScript3 source code

/**
 * Copyright jozefchutka ( http://wonderfl.net/user/jozefchutka )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/b2FY
 */

package
{
    import flash.display.Sprite;
    
    [SWF(width="465", height="465", frameRate="30", backgroundColor="#ffffff")]
    public class WonderflApp extends Sprite
    {
        
        public function WonderflApp():void
        {
            var a:uint, b:uint;
            loopA:for(a = 0; a < 10; a++)
                loopB:while(b < 10)
                    loopC:for each(var c:uint in [0,1,2,3])
                        break loopA;
            
            trace(a, b, c); // returns "0 0 0"
        }
    }
}