Introduction to Flash MX Tutorial > Load dynamic text at runtime > Create a dynamic text field |  |

Create a dynamic text field

Now you'll create a dynamic text field. Instead of typing text into the field, you'll specify the variable text that loads into the field at runtime.

1 | In the Timeline, select the Copy layer. In the toolbox, select the Text tool. In the Property inspector, select Dynamic Text from the Text Type pop-up menu.
2 | In the Font pop-up menu, select _sans.
| _sans is a device font appropriate for small text that appears on multiple computer platforms. For more information about device fonts, see Using device fonts (static horizontal text only).
3 | In the Point Size text box, type 12.
4 | Click the Text (fill) Color box and select yellow, with a hexadecimal value of FFCC00.
5 | In the Line Type pop-up menu, select Multiline, which is for multiple lines of text that will wrap.
6 | On the Stage, click below the logo. Drag the pointer to create a text field the width of the logo text and the approximate depth of the vertical line that's grouped with the logo, as shown in the following illustration.
7 | In the Property inspector, type textField in the Var text box.
| The text file that will load into the dynamic text field, as seen in the following illustration, includes text that names the variable: `textField=`. When you enter this name in the Var text box, you are naming the variable that the movie should load.