![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 230](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553230.webp)
230
ActionScript language elements
Example
The following example sets status equal to the amount of free memory:
status = fscommand2("GetFreePlayerMemory");
GetMaxBatteryLevel fscommand2 Command
GetMaxBatteryLevel
Returns the maximum battery level of the device. It is a numeric value greater than 0.
Availability:
ActionScript 1.0; Flash Lite 1.1
Example
The following example sets the the
maxBatt
variable to the maximum battery level:
maxBatt = fscommand2("GetMaxBatteryLevel");
GetMaxSignalLevel fscommand2 Command
GetMaxSignalLevel
Returns the maximum signal strength level as a numeric value.
Availability:
ActionScript 1.0; Flash Lite 1.1
Example
The following example assigns the maximum signal strength to the
sigStrengthMax
variable:
sigStrengthMax = fscommand2("GetMaxSignalLevel");
Command
Parameters
Value Returned
GetMaxBatteryLevel
None
-1: Not supported. Other values: The
maximum battery level.
Command
Parameters
Value Returned
GetMaxSignalLevel
None
-1: Not supported. Other numeric values: The
maximum signal level.
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...