User Guide

820 Chapter 6: Components Dictionary
UIObject.redraw()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
componentInstance.redraw(always)
Parameters
always
A Boolean value. If true, the method draws the object, even if invalidate() wasnt
called. If
false, the method draws the object only if invalidate() was called.
Returns
Nothing.
Description
Method; forces validation of the object so that it is drawn in the current frame.
Example
The following example creates a check box and a button and draws them because other scripts are
not expected to modify the form:
form.createClassObject(mx.controls.CheckBox, "cb", 0);
form.createClassObject(mx.controls.Button, "b", 1);
form.redraw(true)
UIObject.resize
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
Usage 1:
on(resize){
...
}
Usage 2:
listenerObject = new Object();
listenerObject.resize = function(eventObject){
...
}
componentInstance.addEventListener("resize", listenerObject)