ADOBE DIRECTOR 11.0
User Guide
229
RadioButton parameters
You can set the following authoring parameters for each RadioButton component instance in the Property inspector
or in the Component Inspector panel:
label
sets the value of the text on the button; the default value is Radio Button.
data
is the value associated with the radio button. There is no default value.
groupName
is the group name of the radio button. The default value is radioGroup.
selected
sets the initial value of the radio button to selected (true) or unselected (false). A selected radio button
displays a dot inside it. Only one radio button within a group can have a selected value of true. If more than one radio
button within a group is set to true, the radio button that is instantiated last is selected. The default value is false.
labelPlacement
orients the label text on the button. This parameter can be left, right, top, or bottom. The default
value is right. For more information, see
RadioButton.labelPlacement
.
Write scripts to set additional options for RadioButton instances by using the methods, properties, and events of the
RadioButton class. For more information, see “RadioButton class” in the Flash documentation.
Customizing the RadioButton component
You can transform a RadioButton component horizontally and vertically both while authoring and at runtime.
The bounding box of a RadioButton component is invisible and also designates the hit area for the component. If
you increase the size of the component, you also increase the size of the hit area.
If the component’s bounding box is too small to fit the component label, the label clips to fit.
Using styles with the RadioButton component
Set style properties to change the appearance of a RadioButton. If the name of a style property ends in
Color
, it is a
color style property and behaves differently than non-color style properties.
A RadioButton component uses the following Halo styles:
Style
Description
themeColor
The background of a component. This is the only color style that doesn’t inherit its
value. Possible values are “haloGreen”, “haloBlue”, and “haloOrange”.
color
The text of a component label.
disabledColor
The disabled color for text.
fontFamily
The font name for text.
fontSize
The point size for the font.
fontStyle
The font style; either “normal” or “italic”.
fontWeight
The font weight; either “normal” or “bold”.