### static

Syntax: | `the static of sprite` `whichFlashSprite`
| `the static of member` `whichFlashMember`
Type: | Cast member property; sprite property
Description: | This property controls the playback performance of a Flash movie sprite depending on whether the movie contains animation. The `static` property can have these values:

| `TRUE` The movie does not contain animation. Optimize playback by redrawing the sprite only when it moves or changes size.
| `FALSE` The movie contains animation. Redraw the sprite for each frame.

| The `static` property can be tested and set. The default setting is `FALSE`.

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.

    on beginSprite me
    	if the static of sprite the spriteNum of me = TRUE then
    		set animationType = "does not have animation."
    	else
    		set animationType = "has animation."
    	end if
    	put "The Flash movie in channel" && the spriteNum of me && animationType
    end

Previous | Next