In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: if(false)の中は自由?

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

// forked from shohei909's if(false)の中は自由?
// forked from Nicolas's switch文のbreakの外は自由?
package {
    import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            if( false ){
                ここも自由
            }
            if( true ){}else{
                こっちだって自由
            }
            if(false)の中は自由
            
            while( false ){
                break;
                やっぱり自由
            }
            
            for (;false;)
            {
                break;
                やっぱりこれも自由
            }
            
            どうもこんにちは : {}
            私の名前はわんこです : {}
            私は自由です : {}
            
            var tf:TextField = new TextField();
            addChild(tf);
            tf.text = "No Error!!";
            return;
            こんなところも使える
        }
    }
}