タブストップが変
/**
* 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);
}
}
}