MACROMEDIA FLASH 8-LEARNING FLASH LITE 1.X ACTIONSCRIPT Manual page 24

Learning flash lite 1.x actionscript
Table of Contents

Advertisement

5.
Select the first (top-most) text field, and in the Property inspector, type
text box.
This variable name corresponds to the name of the first variable defined in the data.txt file
you created previously (
6.
In the same manner as described in the previous two steps, give the remaining four text
fields the variable names
7.
Shift-select each text field so that they're all selected, and select Modify > Convert To
Symbol.
8.
In the Convert to Symbol dialog box, select Movie Clip as the symbol type and click OK.
9.
Select the movie clip you just created and, in the Property inspector, type data_clip in the
Instance Name text box.
10.
In the Timeline, select Frame 1 of the Actions layer and open the Actions panel
(Window > Actions).
11.
Type the following code in the Actions panel:
loadVariables("data.txt", "data_clip");
12.
Save your changes (File > Save) and test the application in the emulator (Control > Test
Movie).
You should see each text field populated with the data in the text file, as the following
figure shows:
24
Common Scripting Tasks
).
item_1=Hello
,
,
item_2
item_3
item_4
, and
.
item_5
in the Var
item_1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING FLASH LITE 1.X ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents