F > FRadioButton.setStyleProperty |
FRadioButton.setStyleProperty
FRadioButton, FRadioButton.setStyleProperty, setStyleProperty
Availability
Flash Player 6.
Usage
myRadioButton.setStyleProperty(styleProperty,value)myRadioButtonGroup.setStyleProperty(styleProperty,value)
Parameters
styleProperty A string specifying a property of the FStyleFormat object.
value The value to set for the property.
Returns
Nothing.
Description
Method; sets an FStyleFormat property for an individual radio button instance. Calling this method to specify a property overrides the setting for this property in the style format assigned to the component. Passing undefined as the value for a property removes all styles for that property.
To set FStyleFormat properties for multiple components, create a custom style format. For more information on creating custom style formats, see "Customizing component colors and text" in the "Using Components" chapter of Using Flash.
Example
The following code sets the radioDot property for radioButton1 to 0xFF12AC (pink).
radioButton1.setStyleProperty("radioDot", 0xFF12AC);
The following code sets the radioDot property for all the buttons in radioGroup1 to 0xFF12AC (pink).
radioGroup1.setStyleProperty("radioDot", 0xFF12AC);
See also