Lingo Dictionary > G-K > insertFrame |  |

insertFrame

Syntax

    insertFrame

Description

Command; duplicates the current frame and its content. The duplicate frame is inserted after the current frame and then becomes the current frame.

This command can be used only during a Score recording session and performs the same function as the `duplicateFrame` command.

Example

This handler generates a frame that has the transition cast member Fog assigned in the transition channel followed by a set of empty frames. The argument `numberOfFrames` sets the number of frames.

    on animBall numberOfFrames
    	beginRecording
    		the frameTransition = member ("Fog").number
    		go the frame + 1
    		repeat with i = 0 to numberOfFrames
    			insertFrame
    		end repeat
    	endRecording
    end