Create Text Field With Actionscript 3.0
Text field can be created with ActionScript, the following writing :
var myText: TextField = new TextField ();Then we also can manipulate text fields,
myText.text = "hello bro";
addChild (myText);
myText.width = 200;In addition, the text display can be enhanced, examples of the script:
myText.height = 40;
myText.border = true;
myText.x = 150;
myText.y = 200;
var formatText: TextFormat = new TextFormat ();~ Good luck
formatText.font = "Arial";
formatText.size = 24;
formatText.color = 0xff0000;
formatText.bold = true;
myText.defaultTextFormat = formatTeks;
Location:
Amerika Serikat
0 comments:
Post a Comment