320
Chapter 12: Methods
Example
This statement deletes the timeout object named AlarmClock from
the timeoutList
:
timeout("AlarmClock").forget()
See also
timeout()
,
timeoutHandler
,
timeoutList
,
new()
framesToHMS()
Usage
framesToHMS(
frames
,
tempo
,
dropFrame
,
fractionalSeconds
)
Description
Function; converts the specified number of frames to their equivalent length in hours, minutes,
and seconds. This function is useful for predicting the actual playtime of a movie or controlling a
video playback device.
The resulting string uses the form
sHH:MM:SS.FFD
, where:
Parameters
frames
Required. An integer expression that specifies the number of frames.
tempo
Required. An integer expression that specifies the tempo in frames per second.
dropFrame
Required. Compensates for the color NTSC frame rate, which is not exactly 30
frames per second and is meaningful only if FPS is set to 30 frames per second. Normally, this
parameter is set to
FALSE
.
fractionalSeconds
Required. Determines whether the residual frames are converted to the
nearest hundredth of a second (
TRUE
) or returned as an integer number of frames (
FALSE
).
Example
The following statement converts a 2710-frame, 30 frame-per-second movie. The
dropFrame
and
fractionalSeconds
arguments are both turned off:
put framesToHMS(2710, 30, FALSE, FALSE)
-- " 00:01:30.10 "
See also
HMStoFrames()
s
A character is used if the time is less than zero, or a space if the time is greater than or equal
to zero.
HH
Hours.
MM
Minutes.
SS
Seconds.
FF
Indicates a fraction of a second if f
ractionalSeconds
is
TRUE
or
frames
if
fractionalSeconds
is
FALSE.
D
A
"d"
is used if
dropFrame
is
TRUE
, or a space if
dropFrame
is
FALSE.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...