EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 358

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...
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