Lingo Dictionary > A-C > clearFrame |  |

clearFrame

Syntax

    clearFrame

Description

Command; erases everything in the current frame's sprite and affects channels during Score recording only.

Example

The following handler clears the content of each frame before it edits that frame during Score generation:

    on newScore
    	beginRecording
    	repeat with counter = 1 to 50
    		clearFrame
    		the frameScript to 25
    		updateFrame
    	end repeat
    	endRecording
    end

See also

`beginRecording`,`endRecording`, `updateFrame`