User Guide
Chapter 3134
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
clearGlobals
Syntax
clearGlobals
Description
Command; sets all global variables to VOID.
This command can be useful when initializing global variables or when opening a new movie that
requires a new set of global variables.
Example
This statement sets all global variables to VOID:
clearGlobals
clearValue
Syntax
member(whichCastmember).camera(whichCamera).colorBuffer\
.clearValue
sprite(whichSprite).camera{(index)}.colorBuffer.clearValue
Description
3D property; specifies the color used to clear out the color buffer if colorBuffer.clearAtRender
is set to
TRUE. The default setting for this property is rgb(0, 0, 0).
Example
This statement sets the clearValue property of the camera to rgb(255, 0, 0). Spaces in the 3d
world which are not occupied by models will appear red.
sprite(1).camera.colorBuffer.clearValue= rgb(255, 0, 0)
See also
clearAtRender