126
Flash Lite Specific Language Elements
FullScreen
Availability
Flash Lite 1.1.
Description
Sets the size of the display area to be used for rendering. The size can be full screen or less-
than full screen.
This command is supported only when Flash Lite is running in stand-alone mode. It is not
supported when the player is running in the context of another application (for example, as a
plug-in to a browser).
Example
The following example attempts to set the display area to full screen. If the returned value is
other than 0, it sends the playback head to the frame labeled smallScreenMode:
status = fscommand2("FullScreen", true);
if(status != 0) {
gotoAndPlay("smallScreenMode");
}
GetBatteryLevel
Availability
Flash Lite 1.1.
Description
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
Value returned
"FullScreen"
size
Either a defined variable or a constant string
value, with one of these values:
true
(full screen) or
false
(less than full screen). Any other value is
treated as the value
false
.
-1: Not supported.
0: Supported.
Command
Parameters
Value returned
"GetBatteryLevel"
None.
-1: Not supported.
Other numeric values: The current battery level.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...