Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > UIObject class > UIObject.redraw() | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
componentInstance.redraw(always)
always A Boolean value. If true, the method draws the object, even if invalidate() wasn't called. If false, the method draws the object only if invalidate() was called.
Nothing.
Method; forces validation of the object so that it is drawn in the current frame.
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)
Flash CS3