flash on 2009-7-20 hacker_56_zq.. forked:1favorite:0lines:31license : MIT License modified : 2009-07-22 02:21:42 Embed Tweet package { import flash.display.Sprite; import flash.display.* import flash.events.* import flash.text.* import flash.filters.*; import flash.geom.*; import flash.utils.* public class FlashTest extends Sprite { private var _tf : TextField; private var _fmt: TextFormat; public function FlashTest() { _fmt = new TextFormat(); // _fmt.font = "MS ゴシック"; // フォント名 _fmt.size = 24; // 文字のポイントサイズ _tf = new TextField(); _tf.width = 800; _tf.height = 600; addChild(_tf); _tf.defaultTextFormat = _fmt; drawText(); } public function drawText():void { // for ( var i:int = 0x3300; i<0x33FF; i++ ) { for ( var i:int = 0x4E00; i<0x9FA5; i++ ) { _tf.appendText(String.fromCharCode(i)); if ( (i % 16) == 0 ) { _tf.appendText("\n") } } } } } Code Fullscreen Preview Fullscreen appendText String.fromCharCode TextFormat defaultTextFormat height width size TextField addChild Sprite int sort new page view favorite forked pv104 forked from: flash on 2009-7-2.. hacker_56_zqlyy forked:0 favorite:0lines:111 (diff:1)