Lingo Dictionary > D-F > fixedRate |
![]() ![]() ![]() |
fixedRate
Syntax
sprite(
whichFlashOrGIFSprite
).fixedRate
the fixedRate of sprite
whichFlashOrGIFSprite
member(
whichFlashOrGIFMember
)
.
fixedRate
the fixedRate of member
whichFlashOrGIFMember
Description
Cast member property and sprite property; controls the frame rate of a Flash movie or animated GIF. The fixedRate
property can have integer values. The default value is 15.
This property is ignored if the sprite's playbackMode
property is anything other than #fixed
.
This
property can be tested and set.
Example
This handler adjusts the frame rate of a Flash movie sprite. As parameters, the handler accepts a sprite reference, an indication of whether to speed up or slow down the Flash movie, and the amount to adjust the speed.
on adjustFixedRate whichSprite, adjustType, howMuch case adjustType of #faster: sprite(whichSprite).fixedRate = sprite(whichSprite).fixedRate + howMuch #slower: sprite(whichSprite).fixedRate = sprite(whichSprite).fixedRate - howMuch end case end
See also
![]() ![]() ![]() |