Tag Archive for 'radiobuttongroup'

25
Jun

Detecting when a RadioButtonGroup has been enabled or disabled in Flex

In a previous example, “Enabling and disabling RadioButton controls in a RadioButtonGroup in Flex”, we saw how you can enable or disable all of the RadioButton controls in a Flex RadioButtonGroup by setting the enabled property.

The following example shows how you can detect when the enabled property changes by using the enabledChanged event.

Full code after the jump.

Continue reading ‘Detecting when a RadioButtonGroup has been enabled or disabled in Flex’

23
Jun

Disabling keyboard navigation on the RadioButton control in Flex

The following example shows how you can disable keyboard navigation within a Flex RadioButton/RadioButtonGroup by extending the RadioButton class and overriding the protected keyDownHandler() method.

Full code after the jump.

Continue reading ‘Disabling keyboard navigation on the RadioButton control in Flex’

21
Jun

Detecting when a RadioButton has been clicked in a RadioButtonGroup in Flex

The following example shows how you can detect when a RadioButton has been clicked in a FlexRadioButtonGroup by listening for the itemClick event.

Full code after the jump.

Continue reading ‘Detecting when a RadioButton has been clicked in a RadioButtonGroup in Flex’

20
Jun

Looping over RadioButton controls in a RadioButtonGroup in Flex

The following example shows how you can loop over the RadioButton controls in a Flex RadioButtonGroup by using the numRadioButtons property and getRadioButtonAt() method.

Full code after the jump.

Continue reading ‘Looping over RadioButton controls in a RadioButtonGroup in Flex’

19
Jun

Enabling and disabling RadioButton controls in a RadioButtonGroup in Flex

The following example shows how you can set the visibility of all of the RadioButton controls in a Flex RadioButtonGroup by setting the enabled property.

Full code after the jump.

Continue reading ‘Enabling and disabling RadioButton controls in a RadioButtonGroup in Flex’

19
Jun

Setting the label placement on a RadioButtonGroup in Flex

The following example shows how you can set the label placement on a series of RadioButton controls in a Flex RadioButtonGroup by setting the labelPlacement property.

Full code after the jump.

Continue reading ‘Setting the label placement on a RadioButtonGroup in Flex’

28
May

Displaying RadioButton controls using the Repeater in Flex

The following example shows how you can display a series of RadioButtons using the Flex Repeater with an Array data provider.

Full code after the jump.

Continue reading ‘Displaying RadioButton controls using the Repeater in Flex’

06
Jan

Clearing a selected RadioButton control in Flex

The following example shows how you can use ActionScript to clear a currently selected radio button by setting the RadioButtonGroup class’s selection property to null.

Full code after the jump.

Continue reading ‘Clearing a selected RadioButton control in Flex’

19
Oct

Determining when the selected radio button has changed

The following examples show how you can detect when the user has selected a different radio button by listening for the change event on the RadioButton control or RadioButtonGroup control.

Full code after the jump.

Continue reading ‘Determining when the selected radio button has changed’

17
Oct

Creating a simple multiple-choice quiz using the RadioButton and RadioButtonGroup controls

The following example shows how you can make a very simple multiple-choice type quiz using the RadioButton and RadioButtonGroup controls. Each time you make an incorrect choice and click the check answers button, the selected (incorrect) choice is removed from the Flex application. If you select the correct answer and click the check answers button, all the incorrect answers are removed.

Full code after the jump.

Continue reading ‘Creating a simple multiple-choice quiz using the RadioButton and RadioButtonGroup controls’