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
"borderStyle"
The value of the property. If the value is a string, it must be enclosed in quotation marks.
value
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
cb.setStyle("fontWeight", "bold");
A string indicating the name of the style property (for example,
, and so on).
fontWeight
style property of the check box instance
,
"fontWeight"
to bold:
cb
UIObject class
825
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers