Wednesday, October 24, 2012

Breaking Out of Non-Looping Statements:

notAloop:
{
    trace("hello 1");
    break notAloop;
    trace("hello 2");
    trace("hello 3");
}
trace("parenEnd");

do {
    trace ("do this once.");
    break;
    trace ("don't do this.");
}while ( false );

//output:
/*
hello 1
parenEnd
do this once.
*/
A few new cool things I found I can do with actionScript syntax.

No comments:

Post a Comment