-- Lingo syntaxmemberOrSpriteObjRef.playBackMode // JavaScript syntaxmemberOrSpriteObjRef.playBackMode;
Cast member and sprite property; controls the tempo of a Flash movie or animated GIF cast member with the following values:
#normal (default)--Plays the Flash movie or GIF file as close to the original tempo as possible.
#lockStep--Plays the Flash movie or GIF file frame for frame with the Director movie.
#fixed--Plays the Flash movie or GIF file at the rate specified by the fixedRate property.
This property can be tested and set.
This sprite script sets the frame rate of a Flash movie sprite to match the frame rate of the Director movie:
-- Lingo syntax
property spriteNum
on beginSprite(me)
sprite(spriteNum).playBackMode = #lockStep
end
// JavaScript syntax
function beginSprite() {
sprite(this.spriteNum).playBackMode = symbol("lockStep");
}
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_pr480.htm