Lingo Dictionary > L-N > movieRate |  |

movieRate

Syntax

    sprite(whichSprite).movieRate
    the movieRate of sprite whichSprite

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

To see an example of `movieRate` 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 sets the rate for a digital video in sprite channel 9 to normal playback speed:

    sprite(9).movieRate = 1

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

    sprite(9).movieRate = -1

See also

`duration`, `movieTime`