Web
Article

Flash Script – Radio Button Component

By Georgina Laidlaw

Flash’s radio button component makes creating radio buttons extremely easy.

1. To open the components panel, hit ctrl+f7.

2. Drag the RadioButton component onto the stage. Select the RadioButton component in Frame 1, and the component’s parameters will appear in the Property inspector.

3. Type "radio" into the Property inspector Instance Name text box.

4. The inital Value parameter specifies whether the initial state of the RadioButton component is selected (True) or unselected (False).

So, in the Initial Value parameter pop-up menu, select "false" so that the inital state of the radiobutton is unselected.

1185_1

5. Leave the Group Name and Data parameters as they are.

6. In the Label Placement parameter pop-up menu, leave the default value set to right alignment. This will ensure that the label will be displayed to the right of our radio button.

That’s all it takes. Test your movie!

Free Guide:

7 Habits of Successful CTOs

"What makes a great CTO?" Engineering skills? Business savvy? An innate tendency to channel a mythical creature (ahem, unicorn)? All of the above? Discover the top traits of the most successful CTOs in this free guide.

No Reader comments

Recommended
Sponsors
Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in Front-end, once a week, for free.