Macromedia flash mx professional 2004-macromedia flash lite 1.1 authoring guidelines Benutzerhandbuch

Seite von 86
38
Chapter 5:  New FSCommand and FSCommand2 commands
GetTimeSeconds()
The 
GetTimeSeconds()
 function returns the second of the current time of day. It is a numeric 
value (without a leading zero). Valid seconds are 0–59.
The 
GetTimeSeconds()
 function is executed immediately upon invocation. If this function is 
not supported, a value of -1 is returned.
Syntax
status = FSCommand2( "GetTimeSeconds” )
Return value
A value of -1 if the function is not supported; otherwise, the current second, returned as a number 
(0-59).
GetTimeZoneOffset()
The 
GetTimeZoneOffset()
 function sets a parameter to the number of minutes between the 
local time zone and universal time (UTC). The parameter is passed in by name. The value 
returned is numeric, and may be a positive or negative number.
The 
GetTimeZoneOffset()
 function is executed immediately upon invocation. If this function is 
not supported, a value of -1 is returned.
Syntax
status = FSCommand2( "GetTimeZoneOffsett”, ”timezoneoffset” )
Return value
A value of -1 if the function is not supported; 0 if it’s supported.
Sample resultant values for 
timezoneoffset
540
: Japan standard time
-420
: Pacific daylight savings time
Volume
The commands in this section provide the mobile phone’s volume information to Flash content 
on the mobile phone. 
GetMaxVolumeLevel()
The 
GetMaxVolumeLevel()
 function returns the maximum volume level of the mobile phone. It 
is a numeric value greater than zero.
The 
GetMaxVolumeLevel()
 function is executed immediately upon invocation. If this function is 
not supported, a value of -1 is returned.
Syntax
status = FSCommand2( "GetMaxVolumeLevel” )