Example |
These statements check the Flash movie to see if it was originally created with a frame rate of less than 15 frames per second. If the movie's frame rate is slower than 15 frames per second, the second line sets the playBackMode of the sprite so that it can be set to another rate. The third line then sets the sprite's fixedRate property to 15 frames per second.
If GetIconProperty(@"Flash Icon", #frameRate) < 15 then
SetSpriteProperty(@"Flash Icon", #playbackMode, #fixed)
SetSpriteProperty(@"Flash Icon", #fixedRate, 15)
end if
|