forked from: タブストップが変
forked from タブストップが変 (diff: 4)
ActionScript3 source code
/**
* Copyright taiga ( http://wonderfl.net/user/taiga )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/d5op
*/
// forked from psyark's タブストップが変
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.setTextFormat(
new TextFormat("_typewriter")
);
textField.text =
"if (hoge) {\n" +
"\tif (fuga) {\n" +
"\t\t// What?\n" +
"\t}\n" +
"}";
addChild(textField);
}
}
}
