Getbatterylevel Fscommand2 Command; Getdevice Fscommand2 Command - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Example
The following example sets the size of the display area to the full screen:
status = fscommand2("FullScreen", true);

GetBatteryLevel fscommand2 Command

GetBatteryLevel
Returns the current battery level. It is a numeric value that ranges from 0 to the maximum
value returned by the GetMaxBatteryLevel variable.
Command
Parameters
GetBatteryLevel None.
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example sets the
battLevel = fscommand2("GetBatteryLevel");

GetDevice fscommand2 Command

GetDevice
Sets a parameter that identifies the device on which Flash Lite is running. This identifier is
typically the model name.
Command
Parameters
GetDevice
device String to receive
the identifier of the device.
It can be either the name of
a variable or a string value
that contains the name of a
variable.
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example assigns the device identifier to the
status = fscommand2("GetDevice", "device");
228
ActionScript language elements
Value Returned
-1: Not supported Other numeric values: The
current battery level.
variable to the current level of the battery:
battLevel
Value Returned
-1: Not supported. 0: Supported.
variable:
device

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash lite 2

Table of Contents