flash on 2009-8-18

by hacker_9p8x8mco
♥0 | Line 15 | Modified 2009-08-18 23:26:37 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.*;
    import flash.text.*;
    public class first extends Sprite{
        public function first(){
            var tf1:TextField = new TextField();
            tf1.text = "test";
            tf1.width = 300;    //表示テキスト横幅
            tf1.height = 200;   //表示テキスト縦幅
            tf1.x = 50;         //表示テキスト横位置
            tf1.y = 20;         //表示テキスト縦位置
            addChild(tf1);      //追加
        }
    }
}