frameRate

Syntax: the frameRate of member whichFlashMember
Type: Cast member property
Description: This property indicates the frame rate of a Flash movie as it was originally created in Flash.
The frameRate property can be tested but not set.
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 of the sprite so that it can be set to another rate. The script then sets the sprite's fixedRate property to 15 frames per second.
on beginSprite me
	if the frameRate of member the memberNum of me < 15 then
		set the playBackMode of sprite the spriteNum of me = #fixed
		set the fixedRate of sprite the spriteNum of me = 15
	end if
end


Previous | Next