Class declaration

Public properties

enabled : Boolean[override] The RadioButton component is enabled if the RadioButtonGroup is enabled and the RadioButton itself is enabled.

2

group : RadioButtonGroupThe RadioButtonGroup component to which this RadioButton belongs.

3

groupName : StringSpecifies the name of the group to which this RadioButton component belongs, or specifies the value of the id property of a RadioButtonGroup component if this RadioButton is part of a group defined by a RadioButtonGroup component.

4

value : ObjectOptional user-defined value that is associated with a RadioButton component.

Public methods

S.N.

Method & Description

1

RadioButton()Constructor.

Methods inherited

This class inherits methods from the following classes:

spark.components.supportClasses.ToggleButtonBase

spark.components.supportClasses.ButtonBase

spark.components.supportClasses.SkinnableComponent

mx.core.UIComponent

mx.core.FlexSprite

flash.display.Sprite

flash.display.DisplayObjectContainer

flash.display.InteractiveObject

flash.display.DisplayObject

flash.events.EventDispatcher

Object

Flex RadioButton Control Example

Let us follow the following steps to check usage of RadioButton control in a Flex application by creating a test application:

Step

Description

1

Create a project with a name HelloWorld under a package com.tutorialspoint.client as explained in the Flex - Create Application chapter.

Once you are ready with all the changes done, let us compile and run the application in normal mode as we did in Flex - Create Application chapter. If everything is fine with your application, this will produce following result: [ Try it online ]