I just need a simple piece of code please.How do you display integers or strings in actionscript 3 on the stage?
Try this code
*******************
var int_myInt: int=23;
var txt_myText: TextField = new TextField();
txt_myText. height = 20;
txt_myText. border = true;
txt_myText. text = String (int_myInt);
addChild (txt_myText);
*******************
Anil
anilkumarnd@gmail.com
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment