EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 924

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
924 Chapter 14: Properties
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:
• #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.
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