frameReady

Syntax: frameReady(sprite whichFlashSprite, framenumber)
Type: Function
Description: This function indicates whether enough of a Flash movie sprite has streamed into memory to render the frame specified in the framenumber parameter. This function returns:
TRUE Enough of the media exists in RAM to render the frame.
FALSE Not enough media exists in RAM to render the frame.
Example: This frame script checks to see if frame 25 of a Flash movie sprite in channel 5 can be rendered. If it can't, the script keeps the playback head looping in the current frame of the Director movie. When frame 25 can be rendered, the script starts the movie and lets the playback head proceed to the next frame of the Director movie.
on exitFrame
	if the frameReady(sprite 5, 25) = FALSE then
		go to the frame
	else
		play sprite 5
	end if
end


Previous | Next