![MACROMEDIA FLASH 8-FLASH Reference Download Page 138](http://html2.mh-extra.com/html/macromedia/flash-8-flash/flash-8-flash_reference_3347197138.webp)
138
Flash Lite Specific Language Elements
GetLocaleTime
Availability
Flash Lite 1.1.
Description
Sets a parameter to a string representing the current time, formatted according to the
currently defined locale.
Example
The following example attempts to get the current local time into the
time
variable. It also
sets the value of
status
to report whether it was able to do so.
status = fscommand2("GetLocaleTime", "time");
trace(time);
// output: 14:30:21
See also
GetLocaleLongDate
,
GetLocaleShortDate
GetMaxBatteryLevel
Availability
Flash Lite 1.1.
Description
Returns the maximum battery level of the device. It is a numeric value greater than 0.
Command
Parameters
Value returned
"GetLocaleTime"
time
String variable to receive the value of the
current time, such as
"
6:10:44 PM
"
or
"
18:10:44
"
.
It can be either the name of a variable or a string value
that contains the name of a variable.
The value returned in
time
is a multicharacter, variable-
length string. The actual formatting depends on the
device and the locale.
-1: Not
supported.
0: Supported.
Command
Parameters
Value returned
"GetMaxBatteryLevel"
None.
-1: Not supported.
other values: The maximum 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...