Lingo Dictionary > S > static |
![]() ![]() ![]() |
static
Syntax
sprite(
whichFlashSprite
).static
the static of sprite
whichFlashSprite
member(
whichFlashMember
).static
the static of member
whichFlashMember
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 (FALSE
, default), the property redraws the sprite for each frame; if the movie doesn't contain animation (TRUE
), the property redraws the sprite only when it moves or changes size.
This property can be tested and set.
Note: Set the static
property to TRUE
only when the Flash movie sprite does not intersect other 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:
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
![]() ![]() ![]() |