User Guide
253
Examples
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
This statement instructs the QuickTime digital video cast member Rotating Chair to play every
frame as fast as possible:
member("Rotating Chair").frameRate = -2
The following 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
frameReady()
Syntax
frameReady(frameN)
frameReady(frameN, frameZ)
frameReady()
frameReady(sprite whichFlashSprite, frameNumber)
Description
Function; for a Flash movie, determines whether a streaming movie is ready for display. If enough
of a sprite has streamed into memory to render the frame (integer for frame number, string for
label) specified in the
frameNumber parameter, this function is TRUE; otherwise it is FALSE. For a
Director movie, this function determines whether all the cast members for
frameN (the number
of the frame) are downloaded from the Internet and available locally.
This function is useful only when streaming a movie, range of frames, cast, or linked cast
member. To activate streaming, set the Movie:Playback properties in the Modify menu to Use
Media as Available or Show Placeholders.
For Director movies, projectors, and Shockwave movies:
• frameReady (frameN)—Determines whether the cast members for frameN are downloaded.
• frameReady (frameN, frameZ)—Determines whether the cast members for frameN through
frameZ are downloaded.
• frameReady()—Determines if cast member used in any frame of the Score are downloaded.
For a demonstration of the
frameReady function used with a Director movie, see the sample
movie “Streaming Shockwave” in Director Help.
This function can be tested but not set.