Customizing The Radiobutton Component - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

To create an application with the RadioButton component:
1.
Drag two RadioButton components from the Components panel to the Stage.
2.
Select one of the radio buttons. In the Component inspector, do the following:
Enter Yes for the label parameter.
Enter Flashist for the data parameter.
3.
Select the other radio button. In the Component inspector, do the following:
Enter No for the label parameter.
Enter Anti-Flashist for the data parameter.
4.
Drag a TextArea component from the Components panel to the Stage and give it an
instance name of
5.
Select Frame 1 in the main Timeline, open the Actions panel, and enter the following code:
flashistListener = new Object();
flashistListener.click = function (evt){
theVerdict.text = evt.target.selection.data
}
radioGroup.addEventListener("click", flashistListener);
The last line of code adds a
The handler sets the
the
property of the selected radio button in the
data
more information, see
Customizing the RadioButton
component
You can transform a RadioButton component horizontally and vertically while authoring and
at runtime. While authoring, select the component on the Stage and use the Free Transform
tool or any of the Modify > Transform commands. At runtime, use the
(see
UIObject.setSize()
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 is clipped
to fit.
.
theVerdict
event handler to the
click
property of
text
RadioButton.click
).
radioGroup
(a TextArea instance) to the value of
theVerdict
radioGroup
.

Customizing the RadioButton component

radio button group.
radio button group. For
method
setSize()
1025

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents