User Guide

UIObject class 825
var themeShape:String = "circle_skin"
function Shape(){
}
function init(Void):Void{
super.init();
}
function createChildren():Void{
setSkin(1, themeShape);
super.createChildren();
}
}
UIObject.setStyle()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
componentInstance.setStyle(propertyName, value)
Parameters
propertyName
A string indicating the name of the style property (for example, "fontWeight",
"borderStyle", and so on).
value The value of the property. If the value is a string, it must be enclosed in quotation marks.
Returns
A UIObject object that is an instance of the specified class.
Description
Method; sets the style property on the style declaration or object. If the style property is an
inheriting style, the children of the object are notified of the new value.
For a list of the styles supported by each component, see individual component entries. For
example, Button component styles are listed in “Using styles with the Button component” under
“Button component.
Example
The following code sets the fontWeight style property of the check box instance cb to bold:
cb.setStyle("fontWeight", "bold");