User Guide

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
videos duration. The value is in ticks.
When whichCastMember is a transition cast member, this property indicates the transitions
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.