currentTime (QuickTime, AVI)

Usage

-- Lingo syntax
spriteObjRef.currentTime

// JavaScript syntax
spriteObjRef.currentTime;

Description

Digital video sprite property; determines the current time of a digital video movie playing in the channel specified by whichSprite. The movieTime value is measured in ticks.

This property can be tested and set.

To see an example of currentTime used in a completed movie, see the QT and Flash movie in the Learning/Lingo Examples folder inside the Director application folder.

Example

This statement displays the current time of the QuickTime movie in channel 9 in the Message window:

-- Lingo syntax
put(sprite(9).currentTime)

// JavaScript syntax
put(sprite(9).currentTime);

This statement sets the current time of the QuickTime movie in channel 9 to the value in the variable Poster:

-- Lingo syntax
sprite(9).currentTime = Poster

// JavaScript syntax
sprite(9).currentTime = Poster;

See also

duration (Member)


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/director/mx2004/release_en/09_pr162.htm