P. 1
Learning Flash

Learning Flash

|Views: 24|Likes:
Published by Sudheer Naidu

More info:

Categories:Types, Reviews, Book
Published by: Sudheer Naidu on Jul 12, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/12/2011

pdf

text

original

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.

1In the Timeline, select the Dynamic Text layer. Use the Selection tool to click in the workspace,
to deselect any objects.
2Select the Text tool in the toolbar.

3In the text Property inspector, set the following options:

Select Dynamic Text from the Text Type pop-up menu.

For Text Attributes, set Verdana as the text type, with a font size of 6.

For Line Type, select Multiline to ensure the text wraps correctly.

Click the text color box and select a dark shade of gray.

Select Align Left as a paragraph attribute, if it isn’t already selected.
4On the Stage, drag to create a text field in the area between the two horizontal rules.

5In 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.

Test the SWF file

83

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->