Johnny G Junior's NoteBook Treasures: Dynamic Text

Monday, April 28, 2008

Dynamic Text

very quick and easy.

Dynamic text lets you fill in a text fields using scripts... why would you want that. Percentages are a good example. If you want a percent number to display, use dynamic text.

Ok. lets set one up real quick so you could see how it works.

on the stage, draw out a new TEXT box.
open the properties panel and lets turn the text to DYNAMIC and lets make it a variable name so we could REFERECE it in the script. lets name it tText



lets make a frame script to test the communication between the dynamic text and the action script.


tText = "we filled this text field";


alt + enter to test... and you will see that text come up in that dynamic text field.

No comments: