TextFieldX

From Noisebridge
Revision as of 15:31, 7 April 2013 by Thex (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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);
		}

	}
	
}