Example
This statement checks whether a projector was created for Windows 95 or Windows NT:
on exitFrame
if the platform contains "Windows,32" then
castLib("Win95 Art").name = "Interface"
end if
end
See also
runMode
playBackMode
Usage
-- Lingo syntax
memberOrSpriteObjRef.playBackMode
// JavaScript syntax
memberOrSpriteObjRef.playBackMode;
Description
Cast member and sprite property; controls the tempo of a Flash movie or animated GIF cast
member with the following values:
•
(default)—Plays the Flash movie or GIF file as close to the original tempo as possible.
#normal
•
—Plays the Flash movie or GIF file frame for frame with the Director movie.
#lockStep
•
—Plays the Flash movie or GIF file at the rate specified by the
#fixed
This property can be tested and set.
Example
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");
}
See also
fixedRate
924
Chapter 14: Properties
property.
fixedRate
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers