Text in Flash

3 posts

Flag Post

Hi, I’m having trouble with text at the moment. What I’d like to do is enter a text box into a movieclip symbol so that I can have the text perform various animations (move, fade out by lowering alpha value, etc.) however I want the contents of the text box to be based on a variable and able to be changed multiple times during runtime. How do I accomplish this? I can enter a text box into a symbol and manipulate static text easily enough, but I mainly don’t know how to change the contents with code during runtime.

 
Flag Post

Use TextField class, Luke.
Manual

 
Flag Post
textField:Textfield = new Textfield();
addChild(textfield)
textfield.text = "This is some text";
textField.width = 100;