EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 746

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...
746 Chapter 14: Properties
duration (DVD)
Usage
-- Lingo syntax
dvdObjRef.duration
// JavaScript syntax
dvdObjRef.duration;
Description
DVD property; returns the total title time, in milliseconds. Read-only.
Example
This statement returns the duration of the current title:
--Lingo syntax
trace (member(1).duration) -- 1329566
// JavaScript syntax
trace (member(1).duration); // 1329566
See also
DVD
duration (Member)
Usage
-- Lingo syntax
memberObjRef.duration
// JavaScript syntax
memberObjRef.duration;
Description
Cast member property; determines the duration of the specified Shockwave Audio (SWA),
transition, Windows Media, and QuickTime cast members.
• When whichCastMember is a streaming sound file, this property indicates the duration of the
sound. The duration property returns 0 until streaming begins. Setting preLoadTime to 1
second allows the bit rate to return the actual duration.
• When whichCastMember is a digital video cast member, this property indicates the digital
video’s duration. The value is in ticks.
• When whichCastMember is a transition cast member, this property indicates the transition’s
duration. The value for the transition is in milliseconds. During playback, this setting has the
same effect as the Duration setting in the Frame Transition dialog box.
This property can be tested for all cast members that support it, but only set for transitions.
To see an example of
duration used in a completed movie, see the QT and Flash movie in the
Learning/Lingo Examples folder inside the Director application folder.