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() wasn't 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)

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00002945.html