Flash Player 6 (6.0 79.0).
Flash MX 2004.
componentInstance.setStyle(propertyName,value)
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.
A UIObject object that is an instance of the specified class.
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."
The following code sets the fontWeight style property of the check box instance cb to bold:
cb.setStyle("fontWeight", "bold");
RSS feed | 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/00002953.html
Comments