User Guide
19
3
CHAPTER 3
Common Scripting Tasks
This chapter discusses common Flash Lite scripting tasks for working with the user’s device.
These include, for example, getting device capability information, initiating phone calls and
text messages, and determining network status.
This chapter contains the following topics:
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
Determining device and platform
capabilities
Flash Lite 1.1 includes a number of ActionScript variables that provide information about
features and capabilities available to Flash Lite applications running on a particular device. For
example, the
_capLoadData variable indicates if the device supports loading external data,
and the
_capSMS variable indicates if the device supports sending SMS (short message service)
messages. For a full list of capability variables, see “Capabilities” in the Flash Lite 1.x
ActionScript Language Reference.