Create a dynamic text field

Dynamic text can display text from external sources at runtime. Next, you'll create a dynamic text field that links to an external text file. The external text file you'll use is named safetyFeatures.txt. It is in the same folder as the lesson FLA file. The FLA file already contains ActionScript to display the text when you test or publish the document.

  1. In the Timeline, select the Dynamic Text layer. Use the Selection tool to click in the workspace, to deselect any objects.
  2. Select the Text tool in the toolbar.
  3. In the text Property inspector, set the following options:
  4. On the Stage, drag to create a text field in the area between the two horizontal rules.

  5. In the Instance Name text box of the Property inspector, name the dynamic text field newFeatures_txt.

    The ActionScript in this document loads an external text file, which is in the same folder as your document. The ActionScript is set up to load the text into a field named newFeatures_txt.