EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 564

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
564 Chapter 12: Methods
time() (System)
Usage
-- Lingo syntax
_system.time()
// JavaScript syntax
_system.time();
Description
System method; returns the current time in the system clock as a string.
The returned time is formatted as follows:
1:30 PM
Parameters
None.
Example
The following handler outputs the current time to a text field.
-- Lingo syntax
on exitFrame
member("clock").text = _system.time()
end
// JavaScript syntax
function exitFrame() {
member("clock").text = _system.time();
}
See also
date() (System), System
timeout()
Usage
-- Lingo syntax
timeout(timeoutObjName)
// JavaScript syntax
timeout(timeoutObjName);
Description
Top level function; returns a given timeout object.
Use the new() method to create a new timeout object and add it to the timeoutList.
Parameters
timeoutObjName Required. A string that specifies the name of the timeout object to return.