User Guide
3
Contents
Chapter 1: About Flash Lite 1.x ActionScript . . . . . . . . . . . . . . . . . . 5
Flash Lite 1.x ActionScript overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Differences between Flash Lite 1.0 and Flash Lite 1.1 ActionScript . . . 6
Flash 4 ActionScript not supported by Flash Lite 1.x ActionScript. . . . 6
Features not available in Flash Lite 1.x ActionScript . . . . . . . . . . . . . . . . 7
Chapter 2: Flash 4 ActionScript Primer. . . . . . . . . . . . . . . . . . . . . . 9
Getting and setting movie clip properties . . . . . . . . . . . . . . . . . . . . . . . . . .9
Controlling other timelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Using variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Emulating arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Working with text and strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Using the call() function to create functions . . . . . . . . . . . . . . . . . . . . . . . 13
Using the eval() function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Chapter 3: Common Scripting Tasks . . . . . . . . . . . . . . . . . . . . . . . 19
Determining device and platform capabilities . . . . . . . . . . . . . . . . . . . . . 19
Opening a web page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Initiating a phone call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Initiating a text or multimedia message . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Initiating an e-mail message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Loading external SWF files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Loading external data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25