User Guide

UIObject.invalidate() 1371
Description
Event; broadcast when the objects visible property is changed from true to false.
Example
The following handler displays a message in the Output panel when the object it’s attached to
becomes invisible.
on (hide) {
trace("I’ve become invisible.");
}
See also
UIObject.reveal
UIObject.invalidate()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
componentInstance.invalidate()
Returns
Nothing.
Description
Method; marks the object so it is redrawn on the next frame interval.
This method is primarily useful to developers of new custom components. A custom
component is likely to support a number of operations that change the component’s
appearance.
Often, the best way to build a component is to centralize the logic for updating the
components appearance in the
draw() method. If the component has a draw() method, you
can call
invalidate() on the component to redraw it. (For information on defining a
draw() method, see “Defining the draw() method” in Using Components.)