User Guide

Chapter 3132
Definition
Command; resets the global Flash Player used for ActionScript objects and removes any
ActionScript objects from memory. The command does not clear or reset references to those
objects stored in Lingo. Lingo references will persist but will refer to nonexistent objects. You
must set each reference to
VOID individually.
The
clearAsObjects() command affects only global objects, such as the array created in
this statement:
myGlobalArray = newObject(#array)
The clearAsObjects() command has no effect on objects created within sprite references, such
as the following:
myArray = sprite(2).newObject(#array)
Example
This statement clears all globally created ActionScript objects from memory:
clearAsObjects()
See also
newObject(), setCallback()
clearAtRender
Syntax
member(whichCastmember).camera(whichCamera).colorBuffer.\
clearAtRender
sprite(whichSprite).camera{(index)}.colorBuffer.clearAtRender
Description
3D property; indicates whether the color buffer is cleared after each frame. Setting the value to
FALSE, which means the buffer is not cleared, gives an effect similar to trails ink effect. The
default value for this property is
TRUE.
Example
This statement prevents Director from erasing past images of the view from the camera. Models
in motion will appear to smear across the stage.
sprite(1).camera.colorBuffer.clearAtRender = 0
See also
clearValue
clearCache
Syntax
clearCache
Description
Command; clears the Director network cache.
The
clearCache command clears only the cache, which is separate from the browsers cache.
If a file is in use, it remains in the cache until it is no longer in use.