TextField入力

by stenpel
♥0 | Line 18 | Modified 2010-04-15 02:14:44 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldType;
    import flash.text.TextFieldAutoSize;
    public class FlashTest extends Sprite {
    	private var tf:TextField;
        public function FlashTest() {
            // write as3 code here..
            tf = new TextField();
            tf.width = 300;
            tf.height = 300;
            tf.type = TextFieldType.INPUT; 
            tf.autoSize = TextFieldAutoSize.LEFT;
            tf.border = tf.wordWrap = tf.multiline = true;
            addChild(tf);
        }
    }
}