// JavaScript syntax
put(sprite(2).state); // 0
put(member("Real").state); // 0
See also
mediaStatus (RealMedia, Windows
static
Usage
-- Lingo syntax
memberOrSpriteObjRef.static
// JavaScript syntax
memberOrSpriteObjRef.static;
Description
Cast member property and sprite property; controls playback performance of a Flash movie sprite
depending on whether the movie contains animation. If the movie contains animation (
default), the property redraws the sprite for each frame; if the movie doesn't contain animation
(
), the property redraws the sprite only when it moves or changes size.
TRUE
This property can be tested and set.
Note: Set the
static
moving Director sprites. If the Flash movie intersects moving Director sprites, it may not redraw
correctly.
Example
This sprite script displays in the Message window the channel number of a Flash movie sprite and
indicates whether the Flash movie contains animation:
-- Lingo syntax
property spriteNum
on beginSprite me
if sprite(spriteNum).static then
animationType = "does not have animation."
else
animationType = "has animation."
end if
put("The Flash movie in channel" && spriteNum && animationType)
end
// JavaScript syntax
function beginSprite() {
var st = sprite(this.spriteNum).static;
if (st = 1) {
animationType = "does not have animation.";
} else {
animationType = "has animation.";
}
trace("The Flash movie in channel " + this.spriteNum + animationType);
}
1014
Chapter 14: Properties
Media), percentBuffered,
property to
only when the Flash movie sprite does not intersect other
TRUE
lastError
FALSE
,
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