In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

flash on 2010-2-22

Get Adobe Flash player
by mhayashi 22 Feb 2010
/**
 * Copyright mhayashi ( http://wonderfl.net/user/mhayashi )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/kaAp
 */

package {
    import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFieldType;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	
    public class MyTextField extends Sprite {
        public function MyTextField() {
            var tf:TextFormat = new TextFormat();
			tf.font = "_typewriter";
			tf.size = 18;

			var fld:TextField = new TextField();
			fld.type = TextFieldType.INPUT;
			fld.defaultTextFormat = tf;
			fld.x = 100;
			fld.y = 50;
			fld.width = 300;
			fld.height = 24;
			fld.border = true;
			addChild(fld);
        }
    }
}