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

Components language reference
Table of Contents

Advertisement

You enable accessibility for a component only once, regardless of how many instances you
have of the component. For more information, see Chapter 19, "Creating Accessible
Content," in Using Flash.

Using the RadioButton component

A radio button is a fundamental part of any form or web application. You can use radio
buttons wherever you want a user to make one choice from a group of options. For example,
you would use radio buttons in a form to ask which credit card a customer wants to use.
RadioButton parameters
You can set the following authoring parameters for each RadioButton component instance in
the Property inspector or in the Component inspector:
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
label
sets the value of the text on the button. The default value is
labelPlacement
orients the label text on the button. This parameter can be one of four
values:
,
,
left
right
RadioButton.labelPlacement
selected
sets the initial value of the radio button to selected (
selected radio button displays a dot inside it. Only one radio button in a group can have a
selected value of
true
button that is instantiated last is selected. The default value is
You can write ActionScript to set additional options for RadioButton instances using the
methods, properties, and events of the RadioButton class. For more information, see
"RadioButton class" on page
Creating an application with the RadioButton
component
The following procedure explains how to add RadioButton components to an application
while authoring. In this example, the radio buttons are used to present the yes-or-no question
"Are you a Flashist?". The data from the radio group is displayed in a TextArea component
with the instance name
1024
RadioButton component
, or
. The default value is
top
bottom
.
. If more than one radio button in a group is set to
1029.
.
theVerdict
radioGroup
Radio Button
. For more information, see
right
) or unselected (
true
, the radio
true
.
false
.
.
). A
false

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents