View comments | RSS feed

playRate (QuickTime, AVI)

Usage

-- Lingo syntax
spriteObjRef.playRate

// JavaScript syntax
spriteObjRef.playRate;

Description

Digital video sprite property; controls the rate at which a digital video in a specific channel plays. The movie rate is a value specifying the playback of the digital video. A value of 1 specifies normal forward play, -1 specifies reverse, and 0 specifies stop. Higher and lower values are possible. For example, a value of 0.5 causes the digital video to play slower than normal. However, frames may be dropped when the playRate sprite property exceeds 1. The severity of frame dropping depends on factors such as the performance of the computer the movie is playing on and whether the digital video sprite is stretched.

This property can be tested and set.

Example

This statement sets the rate for a digital video in sprite channel 9 to normal playback speed:

-- Lingo syntax
sprite(9).playRate = 1

// JavaScript syntax
sprite(9).playRate = 1;

This statement causes the digital video in sprite channel 9 to play in reverse:

-- Lingo syntax
sprite(9).playRate = -1

// JavaScript syntax
sprite(9).playRate = -1;

See also

duration (Member), currentTime (QuickTime, AVI)


Comments


2Cin3D said on Feb 17, 2004 at 8:14 PM :
I am using a Windows Media Video (WMV) file in Director, but can not get the playRate value to change from 1.0 - either by using lingo or the property inspector.

When using lingo it gives me an error saying invalid property or value, depending on if I try to apply it to the sprite or the member.

In addition, if you look in the help reference index for movieRate property, it simply refers you to playRate.
august2001 said on Jun 15, 2004 at 1:07 PM :
This command does not seem to work in MX 2004. Like the other comment here, I get a script error "property not found" when I attempt to use this with a quicktime movie sprite.

I've had to retreat the movierate function, which also now does not seem to work properly. Setting this property to 0 does not stop the quicktime file in MX 2004. I had to set the movierate to .001 to get Director to stop the quicktime movie from playing.

-- August Gresens
-- Blackhammer Productions

 

RSS feed | 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_pr486.htm