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( "GetTimeZoneOffset”, ”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” )
Содержание FLASH MX PROFESSIONAL 2004 - FLASH LITE 1.1...
Страница 1: ...Macromedia Flash Lite 1 1 Authoring Guidelines...
Страница 6: ...6 Contents...
Страница 10: ...10 Chapter 1 Introduction...
Страница 20: ...20 Chapter 2 Optimizing Content...
Страница 56: ...56 Chapter 7 Testing Content...
Страница 58: ...58 Chapter 8 Development Kit Examples...
Страница 74: ...74 Appendix B Supported ActionScript Properties...