Flash Lite Specific Language Elements

This section describes both the platform capabilities and variables that Adobe's Macromedia Flash Lite 1.1 recognizes, and the Flash Lite commands you can execute using the fscommand() and fscommand2() functions. The functionality described in this section is specific to Flash Lite.

The contents of this section are summarized in the following table:

Language element

Description

_capCompoundSound

Indicates whether Flash Lite can process compound sound.

_capEmail

Indicates whether the Flash Lite client can send e-mail messages using the GetURL() ActionScript command.

_capLoadData

Indicates whether the host application can dynamically load additional data through calls to the loadMovie(), loadMovieNum(), loadVariables(), and loadVariablesNum() functions.

_capMFi

Indicates whether the device can play sound data in the Melody Format for i-mode (MFi) audio format

_capMIDI

Indicates whether the device can play sound data in the Musical Instrument Digital Interface (MIDI) audio format.

_capMMS

Indicates whether Flash Lite can send Multimedia Messaging Service (MMS) messages by using the GetURL() ActionScript command.

_capMP3

Indicates whether the device can play sound data in the MPEG Audio Layer 3 (MP3) audio format.

_capSMAF

Indicates whether the device can play multimedia files in the Synthetic music Mobile Application Format (SMAF).

_capSMS

Indicates whether Flash Lite can send Short Message Service (SMS) messages by using the GetURL() ActionScript command.

_capStreamSound

Indicates whether the device can play streaming (synchronized) sound.

_cap4WayKeyAS

Indicates whether Flash Lite executes ActionScript expressions attached to key event handlers associated with the Right, Left, Up, and Down Arrow keys.

$version

Contains the version number of Flash Lite.

fscommand()

A function used to execute the Launch command (see next entry).

Launch

(The only command supported for fscommand() ) Allows the SWF file to communicate with either Flash Lite or the host environment, such as the phone's or device's operating system.

fscommand2()

A function used to execute the commands in this table, except for fscommand().

Escape

Encodes an arbitrary string into a format that is safe for network transfer.

FullScreen

Sets the size of the display area to be used for rendering.

GetBatteryLevel

Returns the current battery level.

GetDateDay

Returns the day of the current date as a numeric value.

GetDateMonth

Returns the month of the current date as a numeric value.

GetDateWeekday

Returns the number of the day of the current date as a numeric value.

GetDateYear

Returns a four-digit numeric value that is the year of the current date.

GetDevice

Sets a parameter that identifies the device on which Flash Lite is running.

GetDeviceID

Sets a parameter that represents the unique identifier of the device; for example, the serial number.

GetFreePlayerMemory

Returns the amount of heap memory, in kilobytes, currently available to Flash Lite.

GetLanguage

Sets a parameter that identifies the language currently used by the device.

GetLocaleLongDate

Sets a parameter to a string that represents the current date, in long form, formatted according to the currently defined locale.

GetLocaleShortDate

Sets a parameter to a string that represents the current date, in abbreviated form, formatted according to the currently defined locale.

GetLocaleTime

Sets a parameter to a string that represents the current time, formatted according to the currently defined locale.

GetMaxBatteryLevel

Returns the maximum battery level of the device.

GetMaxSignalLevel

Returns the maximum signal strength level.

GetMaxVolumeLevel

Returns the maximum volume level of the device as a numeric value.

GetNetworkConnectStatus

Returns a value that indicates the current network connection status.

GetNetworkName

Sets a parameter to the name of the current network.

GetNetworkRequestStatus

Returns a value that indicates the status of the most recent HTTP request.

GetNetworkStatus

Returns a value that indicates the network status of the phone (that is, whether there is a network registered and whether the phone is currently roaming).

GetPlatform

Sets a parameter that identifies the current platform, which broadly describes the class of device. For devices with open operating systems, this identifier is typically the name and version of the operating system.

GetPowerSource

Returns a value that indicates whether the power source is currently supplied from a battery or from an external power source.

GetSignalLevel

Returns the current signal strength as a numeric value.

GetTimeHours

Returns the hour of the current time of day, based on a 24-hour clock as a numeric value.

GetTimeMinutes

Returns the minute of the current time of day as a numeric value.

GetTimeSeconds

Returns the second of the current time of day as a numeric value.

GetTimeZoneOffset

Sets a parameter to the number of minutes between the local time zone and universal time (UTC).

GetTotalPlayerMemory

Returns the total amount of heap memory, in kilobytes, allocated to Flash Lite.

GetVolumeLevel

Returns the current volume level of the device as a numeric value.

Quit

Causes the Flash Lite player to stop playback and exit.

ResetSoftKeys

Resets the soft keys to their original settings.

SetInputTextType

Specifies the mode in which the input text field should be opened.

SetQuality

Sets the rendering quality of the animation.

SetSoftKeys

Remaps the Left and Right soft keys of the device, provided that they can be accessed and remapped.

StartVibrate

Starts the phone's vibration feature.

StopVibrate

Stops the current vibration, if any.

Unescape

Decodes an arbitrary string that was encoded to be safe for network transfer into its normal, unencoded form.