MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 358

Director scripting reference
Table of Contents

Advertisement

Required. Logical expression that determines whether the frame is a drop frame
dropFrame
(
) or not (
TRUE
FALSE
of the value of
dropFrame
fractionalSeconds
after the seconds; they can be either fractional seconds rounded to the nearest hundredth of a
second (
) or the number of residual frames (
TRUE
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
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
358
Chapter 12: Methods
). If the string
ends in a d, the time is treated as a drop frame, regardless
hms
.
Required. Logical expression that determines the meaning of the numbers
).
FALSE
nor
dropFrame
fractionalSeconds
arguments

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