Lingo Dictionary > D-F > frameRate |
![]() ![]() ![]() |
frameRate
Syntax
member(
whichCastMember
).frameRate
the frameRate of member
whichCastMember
Description
Cast member property; specifies the playback frame rate for the specified digital video, or Flash movie cast member.
The possible values for the frame rate of a digital video member correspond to the radio buttons for selecting digital video playback options.
![]() |
When the |
![]() |
When the |
![]() |
When the |
For Flash movie cast members, the property indicates the frame rate of the movie created in Flash.
This property can be tested but not set.
Example
This statement sets the frame rate of the QuickTime digital video cast member Rotating Chair to 30 frames per second:
member("Rotating Chair").frameRate = 30
Example
This statement instructs the QuickTime digital video cast member Rotating Chair to play every frame as fast as possible:
member("Rotating Chair").frameRate = -2
Example
This sprite script checks to see if the sprite's cast member was originally created in Flash 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 script sets the playBackMode
property for the sprite so it can be set to another rate. The script then sets the sprite's fixedRate
property to 15 frames per second.
property spriteNum on beginSprite me if sprite(spriteNum).member.frameRate < 15 then sprite(spriteNum).playBackMode = #fixed sprite(spriteNum).fixedRate = 15 end if end
See also
fixedRate
, movieRate
, movieTime
, playBackMode
![]() ![]() ![]() |