TextFieldX: Difference between revisions
Jump to navigation
Jump to search
(Created page with "A ßêãµ project <pre> package { import flash.html.HTMLLoader; import flash.net.URLRequest; import flash.display.Sprite; public class HTMLLoaderX extends Sprite ...") |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
<pre> | <pre> | ||
package | package | ||
{ | { | ||
import flash.display.Sprite; | import flash.display.Sprite; | ||
import flash.text.TextField; | |||
import flash.text.TextFormat; | |||
public class | public class TextFieldX extends Sprite | ||
{ | { | ||
public var | public var txt:TextField; | ||
public var tf:TextFormat; | |||
public function | public function TextFieldX() | ||
{ | { | ||
tf = new TextFormat("_typewriter"); // Courier New | |||
txt = new TextField(); | |||
txt.width = 640; | |||
txt.height = 960; | |||
addChild( | txt.text = "HelloWorld!"; | ||
txt.setTextFormat(tf); | |||
addChild(txt); | |||
} | } | ||
Latest revision as of 15:31, 7 April 2013
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);
}
}
}