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

タブストップが変

Get Adobe Flash player
by psyark 27 Oct 2009
/**
 * Copyright psyark ( http://wonderfl.net/user/psyark )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/o8vt
 */

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFormat;
        
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var textField:TextField = new TextField();
            textField.x = 20;
            textField.defaultTextFormat =
                new TextFormat("_typewriter");

            textField.text =
            "if (hoge) {\n" +
            "\tif (fuga) {\n" +
            "\t\t// What?\n" +
            "\t}\n" +
            "}";
            addChild(textField);
        }
    }
}