358
Chapter 12: Methods
dropFrame
Required. Logical expression that determines whether the frame is a drop frame
(
TRUE
) or not (
FALSE
). If the string
hms
ends in a
d
, the time is treated as a drop frame, regardless
of the value of
dropFrame
.
fractionalSeconds
Required. Logical expression that determines the meaning of the numbers
after the seconds; they can be either fractional seconds rounded to the nearest hundredth of a
second (
TRUE
) or the number of residual frames (
FALSE
).
Example
This statement determines the number of frames in a 1-minute, 30.1-second movie when the
tempo is 30 frames per second. Neither the
dropFrame
nor
fractionalSeconds
arguments
is used.
put HMStoFrames(" 00:01:30.10 ", 30, FALSE, FALSE)
-- 2710
This statement converts 600 seconds into minutes:
>> put framesToHMS(600, 1,0,0)
>> -- " 00:10:00.00 "
This statement converts an hour and a half into seconds:
>> put HMStoFrames("1:30:00", 1,0,0)
>> -- 5400
See also
framesToHMS()
hold()
Usage
-- Lingo syntax
spriteObjRef
.hitTest(
point
)
// JavaScript syntax
spriteObjRef
.hitTest(
point
);
Description
Flash command; stops a Flash movie sprite that is playing in the current frame, but any audio
continues to play.
Parameters
None.
Example
This frame script holds the Flash movie sprites playing in channels 5 through 10 while allowing
the audio for these channels to continue playing:
-- Lingo syntax
on enterFrame
repeat with i = 5 to 10
sprite(i).hold()
end repeat
end
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...