User Guide
UIObject class 815
Example
The following code sets the ib instance’s fontWeight style property to bold if the cb instance’s
fontWeight style property is bold:
if (cb.getStyle("fontWeight") == "bold")
{
ib.setStyle("fontWeight", "bold");
};
UIObject.height
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
componentInstance.height
Description
Property (read-only); a number indicating the height of the object, in pixels. To change the
height property, call UIObject.setSize().
Example
The following example makes the check box taller:
myCheckbox.setSize(myCheckbox.width, myCheckbox.height + 10);
UIObject.hide
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
on(hide){
...
}
listenerObject = new Object();
listenerObject.hide = function(eventObject){
...
}
componentInstance.addEventListener("hide", listenerObject)
Description
Event; broadcast when the object’s visible property is changed from true to false.