TextFieldX

From Noisebridge
Revision as of 15:31, 7 April 2013 by Thex (Talk | contribs)

Jump to: navigation, search

A ßêãµ project

package
{
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	public class TextFieldX extends Sprite
	{
		public var txt:TextField;
		public var tf:TextFormat;

		public function TextFieldX()
		{
			tf = new TextFormat("_typewriter"); // Courier New
			txt = new TextField();
			txt.width = 640;
			txt.height = 960;
			txt.text = "HelloWorld!";txt.setTextFormat(tf);
			addChild(txt);
		}

	}
	
}

Personal tools