FRadioButton and FRadioButtonGroup

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Appendix G.  Flash UI Component Summary
FRadioButton and FRadioButtonGroup support for standard UI radio buttons and groups

Table G-2 juxtaposes the methods of the FRadioButton and FRadioButtonGroup objects. Note how they share several methods, although in the case of FRadioButtonGroup objects, the method pertains to the radio button group as a whole and not an individual button.

Table G-2. FRadioButton and FRadioButtonGroup methods

Method

Description

FRadioButton

FRadioButtonGroup

getData( )

Returns the data associated with a radio button

getEnabled( )

Boolean indicating whether a radio button or group is enabled (i.e., is active or dimmed)

getGroupName( )

Returns the radio button group name

getLabel( )

Returns the label of a radio button

getState( )

Returns the state of a radio button selected (true) or not selected (false)

getValue( )

Returns the value of the selected button in a group

registerSkinElement( )

Registers a skin element for changing the appearance of a radio button or group

setChangeHandler( )

Specifies the callback function to call when the radio button or group changes state

setData( )

Associates a datum with a radio button

setEnabled( )

Enables or disables a radio button or group

setGroupName( )

Sets the name of a radio button group

setLabel( )

Sets the string label of a radio button

setLabelPlacement( )

Specifies the label location for a radio button or group ("left" or "right")

setSize( )

Sets the width of a radio button or group, in pixels

setState( )

Boolean specifying the radio button state selected (true) or not selected (false)

setStyleProperty( )

Sets a particular style property for the radio button or group (for a list of supported properties, see the FStyleFormat object)

setValue( )

Selects a radio button within a group based on its data value



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net