MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 320

Director scripting reference
Table of Contents

Advertisement

Example
This statement deletes the timeout object named AlarmClock from
timeout("AlarmClock").forget()
See also
timeout(), timeoutHandler, timeoutList,
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
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
is
FALSE.
D
A
is used if
"d"
Parameters
Required. An integer expression that specifies the number of frames.
frames
Required. An integer expression that specifies the tempo in frames per second.
tempo
Required. Compensates for the color NTSC frame rate, which is not exactly 30
dropFrame
frames per second and is meaningful only if FPS is set to 30 frames per second. Normally, this
parameter is set to
fractionalSeconds
nearest hundredth of a second (
Example
The following statement converts a 2710-frame, 30 frame-per-second movie. The
fractionalSeconds
put framesToHMS(2710, 30, FALSE, FALSE)
-- " 00:01:30.10 "
See also
HMStoFrames()
320
Chapter 12: Methods
sHH:MM:SS.FFD
is
dropFrame
TRUE
.
FALSE
Required. Determines whether the residual frames are converted to the
) or returned as an integer number of frames (
TRUE
arguments are both turned off:
new()
, where:
is
ractionalSeconds
TRUE
, or a space if
dropFrame
the timeoutList
or
if
frames
fractionalSeconds
is
FALSE.
FALSE
dropFrame
:
).
and

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents