blob: 1b0e1f24ec2c1f25e4e037e09c8d5330f0a812b8 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- saved from url=(0014)about:internet --><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" href="../../style.css" type="text/css" media="screen"><link rel="stylesheet" href="../../print.css" type="text/css" media="print"><link rel="stylesheet" href="../../override.css" type="text/css"><meta name="keywords" content="RadioButtonGroup,spark.components.RadioButtonGroup,ABOVE,AFTER,ALWAYS,AUTO,BEFORE,BELOW,BEVELED,BOTTOM,CANCEL,CANCEL_LABEL,CENTER,CENTER,CUSTOM_SELECTED_ITEM,DATE_ITEM,DOWN,END,FLAT,HOUR_ITEM,INSET,LEADING_EDGE,LEFT,LEFT,LEFT,MERIDIAN_ITEM,MIDDLE,MINUTE_ITEM,MONTH_ITEM,NO,NONE,NONE,NONE,NONMODAL,NORMAL,NO_LABEL,NO_SCALE,OK,OK_LABEL,RIGHT,RIGHT,RIGHT,SCALE,START,TOP,TOP_LEFT,TRAILING_EDGE,UP,WHEN_ACTIVE,WHEN_FOCUSED,YEAR_ITEM,YES,YES_LABEL,_currentProgress,_direction,_displayPercents,_ignoreFocus,_labelFunction,_openedItem,_parentMenu,_storedSelectedIndex,_suffix,_totalProgress,actionBar,actionBarVisible,actionContent,actionContent,actionContent,actionContent,actionLayout,actionLayout,actionLayout,actionLayout,activeView,allowDeselection,allowMultipleSelection,allowValueWrap,alwaysInFront,alwaysInFront,anchorColumnIndex,anchorRowIndex,applicationDPI,applicationDPI,applicationID,arrowDirection,aspectRatio,autoDisplayFirstFrame,autoDisplayFirstFrame,autoExit,autoHideFirstViewNavigator,autoLayout,autoLayout,autoLayout,autoPlay,autoPlay,autoRewind,autoRewind,backgroundFill,backgroundFill,backgroundFrameRate,baselinePosition,baselinePosition,baselinePositionElement,bitmapData,blendMode,borderStroke,borderStroke,buttonHeight,buttonRotation,buttonWidth,buttonsFlag,bytesLoaded,bytesLoaded,bytesLoaded,bytesTotal,bytesTotal,bytesTotal,callout,calloutContent,calloutDestructionPolicy,calloutLayout,caretColumnIndex,caretIndex,caretIndex,caretIndicator,caretRowIndex,clearOnLoad,clipAndEnableScrolling,closed,closed,colorCorrection,colorCorrection,colorField,columnAlign,columnCount,columnCount,columnSeparator,columnSeparator,columnWidth,columnWidth,columns,columns,columns,columnsLength,content,content,content,contentHeight,contentLoader,contentLoaderGrouping,contentWidth,context,controlBarContent,controlBarContent,controlBarLayout,controlBarLayout,controlBarVisible,controlBarVisible,creationPolicy,currentProgress,currentTime,currentTime,data,data,data,data,dataGrid,dataGrid,dataProvider,dataProvider,dataProvider,dataProvider,dataProvider,dataProvider,dataProviderLength,dataTipField,dataTipField,dataTipFunction,dataTipFunction,dateList,decorator,decoratorDisplay,defaultButtonFlag,defaultPopTransition,defaultPushTransition,deferredContentCreated,designLayer,destructionPolicy,direction,direction,displayAsPassword,displayMode,displayPercents,displayPopUp,dockIconMenu,doubleClickMode,doubleClickMode,down,downColumnIndex,dragEnabled,dragEnabled,dragMoveEnabled,dragMoveEnabled,draggableColumns,dragging,dragging,dropDownController,dropEnabled,dropEnabled,duration,duration,duration,easer,editable,editable,editorActivationMouseEvent,editorColumnIndex,editorRowIndex,elementErrorStrings,emphasized,enableIME,enableIME,enableIME,enableIME,enabled,enabled,fillMode,firstIndexInView,firstIndexInView,firstView,firstView,firstViewData,firstViewData,frameRate,fullText,gap,gap,gap,gridView,group,groupName,hasFocusableChildren,headerRenderer,heightInLines,heightInLines,helpContent,hideSeparatorInText,highlightSelectedColumn,horizontalAlign,horizontalAlign,horizontalAlign,horizontalAlign,horizontalGap,horizontalPosition,horizontalPosition,horizontalScrollPosition,horizontalScrollPosition,hourList,hoverColumnIndex,hoverColumnIndex,hoverIndicator,hoverRowIndex,hovered,htmlText,icon,iconClass,iconContentLoader,iconDisplay,iconField,iconFillMode,iconFunction,iconHeight,iconPlaceholder,iconScaleMode,iconWidth,imeMode,imeMode,imeMode,imeMode,initialized,invalidElements,isActive,isDropDownOpen,isFirstRow,isFirstRow,isLastRow,isLastRow,isModal,isOpen,itemEditor,itemEditorInstance,itemIndex,itemIndex,itemIndex,itemMatchingFunction,itemRenderer,itemRenderer,itemRenderer,itemRenderer,itemRenderer,itemRendererFunction,itemRendererFunction,itemRendererFunction,items,label,label,label,label,label,label,label,labelDisplay,labelField,labelField,labelFunction,labelFunction,labelFunction,labelPlacement,labelToItemFunction,lastIndexInView,lastIndexInView,layout,layout,layout,length,length,length,length,lockedColumnCount,lockedColumnCount,lockedColumnsSeparator,lockedRowCount,lockedRowCount,lockedRowsSeparator,loop,loop,luminosityClip,luminosityInvert,maskText,maskType,maxChars,maxChars,maxChars,maxDate,maxDragRate,maximizable,maximizable,maximum,measuredSizeIncludesScrollBars,mediaPlayerState,mediaPlayerState,menu,menu,meridianList,message,messageDisplay,messageField,messageFunction,minDate,minElementSize,minViewportInset,minimizable,minimizable,minuteList,minuteStepSize,monthList,moveForSoftKeyboard,multiColumnSortingEnabled,multiline,muted,muted,mxmlContent,mxmlContent,mxmlContentFactory,nativeApplication,nativeWindow,nativeWindow,navigationContent,navigationContent,navigationContent,navigationContent,navigationLayout,navigationLayout,navigationLayout,navigationLayout,navigator,navigators,navigators,numElements,numElements,numRadioButtons,numViewNavigators,openOnInput,orientation,overlayControls,padding,padding,padding,paddingBottom,paddingBottom,paddingBottom,paddingLeft,paddingLeft,paddingLeft,paddingRight,paddingRight,paddingRight,paddingTop,paddingTop,paddingTop,pageScrollingEnabled,pageScrollingEnabled,pageTitle,parameters,parentMenu,pauseWhenHidden,pauseWhenHidden,placeHolder,playing,playing,popUp,popUpHeightMatchesAnchorHeight,popUpPosition,popUpWidthMatchesAnchorWidth,poppedViewReturnedObject,preliminaryHeight,preliminaryWidth,preloader,preloaderChromeColor,preserveSelection,preserveSelection,prompt,prompt,redrawRequested,renderMode,requestedColumnCount,requestedColumnCount,requestedColumnCount,requestedColumnCount,requestedMaxColumnCount,requestedMaxRowCount,requestedMaxRowCount,requestedMaxRowCount,requestedMinColumnCount,requestedMinColumnCount,requestedMinColumnCount,requestedMinRowCount,requestedMinRowCount,requestedMinRowCount,requestedRowCount,requestedRowCount,requestedRowCount,requestedRowCount,requireSelection,requireSelection,required,resizable,resizable,resizableColumns,resizableColumns,resizeForSoftKeyboard,resizeForSoftKeyboard,restrict,restrict,rowAlign,rowBackground,rowCount,rowCount,rowHeight,rowHeight,rowHeight,rowHeight,rowSeparator,runtimeDPI,runtimeDPIProvider,scaleGridBottom,scaleGridLeft,scaleGridRight,scaleGridTop,scaleMode,scaleMode,scaleMode,scriptRecursionLimit,scriptTimeLimit,scrollSnappingMode,scrollSnappingMode,selectable,selected,selected,selected,selected,selectedCell,selectedCell,selectedCells,selectedCells,selectedColor,selectedColumnIndex,selectedDate,selectedIndex,selectedIndex,selectedIndex,selectedIndex,selectedIndex,selectedIndex,selectedIndex,selectedIndices,selectedIndices,selectedIndices,selectedItem,selectedItem,selectedItem,selectedItem,selectedItemRendererShouldOpen,selectedItems,selectedItems,selectedItems,selectedNavigator,selectedValue,selection,selectionActivePosition,selectionAnchorPosition,selectionHighlighting,selectionIndicator,selectionLength,selectionLength,selectionMode,selectionMode,separators,sequenceLabel,showCaret,showDataTips,showDataTips,showMaskWhileWrite,showStatusBar,showStatusBar,showSystemCursor,showsCaret,showsCaret,showsCaret,showsCaret,smooth,sortableColumns,sortableColumns,source,source,source,sourceHeight,sourceWidth,splashScreenImage,splashScreenMinimumDisplayTime,splashScreenScaleMode,status,status,suffix,systemChrome,systemChrome,systemTrayIconMenu,tabBarVisible,text,text,text,textFlow,textFlow,textFlow,textFlow,textMaskPrompt,thumbPosition,title,title,title,title,title,title,title,titleContent,titleContent,titleContent,titleContent,titleIcon,titleIcon,titleLayout,titleLayout,titleLayout,titleLayout,totalProgress,transparent,transparent,trustedSource,type,type,typicalItem,typicalItem,typicalItem,typicalItem,typicalItem,typicalItem,typicalText,url,useNativeDragManager,usePlaceHolder,usePreloader,useScrollRect,useVirtualLayout,useVirtualLayout,value,valueFormatFunction,valueParseFunction,variableColumnWidth,variableRowHeight,variableRowHeight,variableRowHeight,verticalAlign,verticalAlign,verticalAlign,verticalAlign,verticalGap,verticalPosition,verticalPosition,verticalScrollPosition,verticalScrollPosition,videoObject,videoObject,viewMenuItems,viewSourceURL,viewport,viewport,viewport,visibleSortIndicatorIndices,volume,volume,widthInChars,widthInChars,widthInChars,wrapElements,yearList,activate,activate,addDragData,addDragData,addElement,addElement,addElement,addElementAt,addElementAt,addElementAt,addItem,addItem,addItem,addItemAt,addItemAt,addItemAt,addMXMLChildren,addMXMLChildren,addSelectedCell,addSelectedCell,addSelectedIndex,addSelectedIndex,adjustSelection,adjustSelection,adjustSelection,adjustSelectionAndCaretUponNavigation,appendText,areCoordinatesOverAHeaderView,backKeyUpHandler,backKeyUpHandler,calculatePopUpPosition,calculateSelectedIndices,changeValueByPage,changeValueByPage,changeValueByStep,changeValueByStep,childrenCreated,clearSelection,clearSelection,close,close,close,closeAndFocusParent,closeDropDown,closeSelectedItemRenderer,commitCaretPosition,commitInteractiveSelection,commitProperties,commitProperties,commitProperties,commitProperties,commitProperties,commitProperties,configureGridColumnHeaderViews,containsGlobalCoordinates,containsMouseEvent,copyItemWithUID,copyItemWithUID,createActionBarHideEffect,createActionBarShowEffect,createChildren,createChildren,createDateItemList,createDeferredContent,createDragIndicator,createDragIndicator,createDropIndicator,createDropIndicator,createLabelDisplay,createReturnObject,createSoftKeyboardEffect,createTabBarHideEffect,createTabBarShowEffect,deserializeData,destroyDropIndicator,destroyDropIndicator,destroyLabelDisplay,dispatchEvent,dispatchEvent,drawBackground,drawBorder,dropDownController_closeHandler,endItemEditorSession,ensureCellIsVisible,ensureCellIsVisible,ensureElementIsVisible,ensureIndexIsVisible,exit,findColorByName,findRowIndex,findRowIndex,findRowIndices,findRowIndices,formatAsYouType,formatTextWithMask,formatTimeValue,generateMXMLInstances,getCellAt,getCellBounds,getCellX,getCellY,getCellsAt,getColorName,getColorValue,getColumnBounds,getColumnIndexAt,getColumnWidth,getCurrentSkinState,getCurrentSkinState,getCurrentViewState,getDefaultLayout,getElementAt,getElementAt,getElementIndex,getElementIndex,getElementPreferredHeight,getElementPreferredWidth,getFormatOfRange,getFormatOfRange,getHeaderBounds,getHeaderIndexAt,getHeaderRendererAt,getHorizontalScrollPositionDelta,getItemAt,getItemAt,getItemAt,getItemIndex,getItemIndex,getItemIndex,getItemIndicesInView,getItemRendererAt,getRadioButtonAt,getRowBounds,getRowIndexAt,getSeparatorIndexAt,getVerticalScrollPositionDelta,getViewNavigatorAt,getVisibleColumnIndices,getVisibleRowIndices,getWindow,hideActionBar,hideTabBar,hideViewNavigatorPopUp,initDefaultItemRenderer,initialized,insertText,invalidateCell,invalidateCell,invalidateGraphicElementDisplayList,invalidateGraphicElementDisplayList,invalidateGraphicElementProperties,invalidateGraphicElementProperties,invalidateGraphicElementSharing,invalidateGraphicElementSharing,invalidateGraphicElementSize,invalidateGraphicElementSize,invalidateTypicalItem,invalidateTypicalItemRenderer,invalidateTypicalItemRenderer,isCellEditable,isCellVisible,isDataEditable,isOurFocus,isSortIndicatorVisible,itemSelected,itemToLabel,itemToLabel,itemToLabel,itemToLabel,itemUpdated,itemUpdated,itemUpdated,item_mouseDownHandler,keyDownHandler,keyDownHandler,keyDownInChild,keyDownInChild,layer_PropertyChange,layoutContents,maximize,maximize,minimize,minimize,moveIndexFindRow,moveIndexFindRow,moveIndexFirstRow,moveIndexFirstRow,moveIndexLastRow,moveIndexLastRow,moveIndexNextRow,moveIndexNextRow,moveIndexPreviousRow,moveIndexPreviousRow,open,open,openAndFocusSelectedItemRenderer,openDropDown,openIfNecessary,orderInBackOf,orderInBackOf,orderInFrontOf,orderInFrontOf,orderToBack,orderToBack,orderToFront,orderToFront,overrideText,partAdded,partAdded,partAdded,partAdded,partAdded,partAdded,partAdded,partRemoved,partRemoved,partRemoved,partRemoved,partRemoved,partRemoved,pause,pause,play,play,popAll,popToFirstView,popView,pushView,removeAll,removeAll,removeAll,removeAllElements,removeAllElements,removeAllElements,removeElement,removeElement,removeElement,removeElementAt,removeElementAt,removeElementAt,removeItem,removeItem,removeItem,removeItemAt,removeItemAt,removeItemAt,removeSelectedCell,removeSelectedCell,removeSelectedIndex,removeSelectedIndex,replaceView,restore,restore,scrollToRange,scrollToRange,seek,seek,selectAll,selectAll,selectAll,selectCellRegion,selectCellRegion,selectIndices,selectIndices,selectRange,selectionContainsCell,selectionContainsCell,selectionContainsCellRegion,selectionContainsCellRegion,selectionContainsIndex,selectionContainsIndex,selectionContainsIndices,selectionContainsIndices,serializeData,setElementIndex,setElementIndex,setElementIndex,setElementPosition,setElementSize,setFocus,setFormatOfRange,setFormatOfRange,setItemAt,setItemAt,setItemAt,setSelectedCell,setSelectedCell,setSelectedIndex,setSelectedIndex,setSelectedIndex,setValue,setValue,setupWindowInitOptions,show,showActionBar,showFirstViewNavigatorInPopUp,showTabBar,sortByColumns,startItemEditorSession,stop,stop,styleChanged,styleChanged,stylesInitialized,swapElements,swapElements,swapElements,swapElementsAt,swapElementsAt,swapElementsAt,toArray,toArray,toArray,updateErrorTextDisplay,updatePopUpPosition,updatePopUpTransform,updateProgressBox,updateRenderer,updateRenderer,updateRenderer,updateRenderer,updateRenderer,updateRenderer,updateSkinDisplayList,validateSize,verifyInsertedText"><title>spark.components.RadioButtonGroup</title><script src="../../AC_OETags.js" type="text/javascript"></script></head><body><script language="javascript" type="text/javascript" src="../../asdoc.js"></script><script language="javascript" type="text/javascript" src="../../help.js"></script><script language="javascript" type="text/javascript" src="../../cookies.js"></script><script language="javascript" type="text/javascript"><!--
asdocTitle = 'RadioButtonGroup - ApacheFlex API Reference';
var baseRef = '../../';
window.onload = configPage;
--></script>
<script type="text/javascript">
scrollToNameAnchor();
</script><table class="titleTable" cellpadding="0" cellspacing="0" id="titleTable" style="display:none"><tr><td class="titleTableTitle" align="left">Apache Flex 4.16.1 API Reference </td><td class="titleTableTopNav" align="right"><a href="../../package-summary.html" onclick="loadClassListFrame('../../all-classes.html')">All Packages</a>&nbsp;|&nbsp;<a href="../../class-summary.html" onclick="loadClassListFrame('../../all-classes.html')">All Classes</a>&nbsp;|&nbsp;<a href="../../all-index-A.html" onclick="loadClassListFrame('../../index-list.html')">Index</a>&nbsp;|&nbsp;<a id="framesLink1" href="../../index.html?spark/components/RadioButtonGroup.html&amp;spark/components/class-list.html">Frames</a><a id="noFramesLink1" style="display:none" href="" onclick="parent.location=document.location"> No Frames </a></td><td class="titleTableLogo" align="right" rowspan="3"><img src="../../images/logo.jpg" class="logoImage" alt="AdobeLogo" title="AdobeLogo"></td></tr><tr class="titleTableRow2"><td class="titleTableSubTitle" id="subTitle" align="left">RadioButtonGroup</td><td class="titleTableSubNav" id="subNav" align="right"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a>&nbsp;| <a href="#includeExamplesSummary">Examples</a></td></tr><tr class="titleTableRow3"><td colspan="3">&nbsp;</td></tr></table><script language="javascript" type="text/javascript" xml:space="preserve">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("RadioButtonGroup"); titleBar_setSubNav(false,true,false,false,false,false,true,false,true,true,false ,false,false,false,false,false);}
-->
</script><div xmlns:fn="http://www.w3.org/2005/xpath-functions" class="MainContent"><table class="classHeaderTable" cellpadding="0" cellspacing="0"><tr><td class="classHeaderTableLabel">Package</td><td><a href="package-detail.html" onclick="javascript:loadClassListFrame('class-list.html')">spark.components</a></td></tr><tr><td class="classHeaderTableLabel">Class</td><td class="classSignature">public class RadioButtonGroup</td></tr><tr><td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">RadioButtonGroup <img src="../../images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> flash.events.EventDispatcher</td></tr><tr><td class="classHeaderTableLabel">Implements</td><td> <a href="../../mx/core/IMXMLObject.html">IMXMLObject</a></td></tr></table><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version :&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version :&nbsp;</b></td><td>Flex 4</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions :&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p></p><p></p>
The RadioButtonGroup component defines a group of RadioButton components
that act as a single mutually exclusive component; therefore,
a user can select only one RadioButton component at a time.
The <code>id</code> property is required when you use the
<code>&lt;s:RadioButtonGroup&gt;</code> tag to define the group name. Any
<code>&lt;s:RadioButton&gt;</code> component added to this group will
have this group name.
<p>Notice that the RadioButtonGroup component is a subclass of EventDispatcher,
not UIComponent, and implements the IMXMLObject interface.
All other Flex visual components implement the IVisualElement interface.
The RadioButtonGroup component declaration must
be contained within the <code>&lt;Declarations&gt;</code> tag since it is
not assignable to IVisualElement.</p>
<p>To use this component in a list-based component, such as a List or DataGrid,
create an item renderer.
For information about creating an item renderer, see
<a href="http://help.adobe.com/en_US/flex/using/WS4bebcd66a74275c3-fc6548e124e49b51c4-8000.html" target="">
Custom Spark item renderers</a>. </p>
<p></p><a name="mxmlSyntaxSummary"></a><span class="classHeaderTableLabel">MXML Syntax</span><span id="showMxmlLink" style="display:none"><a href="#mxmlSyntaxSummary" onclick="toggleMXMLOnly();"><img src="../../images/collapsed.gif" title="collapsed" alt="collapsed" class="collapsedImage">Show MXML Syntax</a><br/></span><span id="hideMxmlLink"><a href="#mxmlSyntaxSummary" onclick="toggleMXMLOnly();"><img src="../../images/expanded.gif" title="expanded" alt="expanded" class="expandedImage">Hide MXML Syntax</a></span><div id="mxmlSyntax" class="mxmlSyntax"> <p>The <code>&lt;s:RadioButtonGroup&gt;</code> tag inherits all of the
tag attributes of its superclass, and adds the following tag attributes:</p>
<pre>
&lt;s:RadioButtonGroup
<strong>Properties</strong>
enabled="true"
selectedValue="null"
selection="null"
<strong>Events</strong>
change="<i>No default</i>"
itemClick="<i>No default</i>"
valueCommit="<i>No default</i>"
/&gt;
</pre>
</div><script language="javascript" type="text/javascript"><!--
setMXMLOnly();
--></script><p><a href="#includeExamplesSummary">View the examples</a></p><p><span class="classHeaderTableLabel">See also</span></p><div class="seeAlso"><a href="RadioButton.html" target="">spark.components.RadioButton</a></div><br/><hr></div><a name="propertySummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Properties</div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableProperty"><tr><th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#enabled" class="signatureLink">enabled</a> : Boolean<div class="summaryTableDescription">
Determines whether selection is allowed.</div></td><td class="summaryTableOwnerCol">RadioButtonGroup</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#numRadioButtons" class="signatureLink">numRadioButtons</a> : int<div class="summaryTableDescription">[read-only]
The number of RadioButtons that belong to this RadioButtonGroup.</div></td><td class="summaryTableOwnerCol">RadioButtonGroup</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#selectedIndex" class="signatureLink">selectedIndex</a> : int<div class="summaryTableDescription">
The index of the selected RadioButton component in the group.</div></td><td class="summaryTableOwnerCol">RadioButtonGroup</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#selectedValue" class="signatureLink">selectedValue</a> : Object<div class="summaryTableDescription">
The value property of the selected
RadioButton component in the group, if it has been set,
otherwise, the label property of the selected RadioButton.</div></td><td class="summaryTableOwnerCol">RadioButtonGroup</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#selection" class="signatureLink">selection</a> : <a href="../../spark/components/RadioButton.html">RadioButton</a><div class="summaryTableDescription">
Contains a reference to the currently selected
RadioButton component in the group.</div></td><td class="summaryTableOwnerCol">RadioButtonGroup</td></tr></table></div><a name="methodSummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Methods </div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableMethod"><tr><th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#RadioButtonGroup()" class="signatureLink">RadioButtonGroup</a>(document:<a href="../../mx/core/IFlexDisplayObject.html">IFlexDisplayObject</a> = null)</div><div class="summaryTableDescription">
Constructor.</div></td><td class="summaryTableOwnerCol">RadioButtonGroup</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getRadioButtonAt()" class="signatureLink">getRadioButtonAt</a>(index:int):<a href="../../spark/components/RadioButton.html">RadioButton</a></div><div class="summaryTableDescription">
Returns the RadioButton component at the specified index.</div></td><td class="summaryTableOwnerCol">RadioButtonGroup</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#initialized()" class="signatureLink">initialized</a>(document:Object, id:String):void</div><div class="summaryTableDescription">
Implementation of the IMXMLObject.initialized() method
to support deferred instantiation.</div></td><td class="summaryTableOwnerCol">RadioButtonGroup</td></tr></table></div><a name="eventSummary"></a><div class="summarySection"><div class="summaryTableTitle">Events</div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableEvent"><tr><th>&nbsp;</th><th colspan="2">Event</th><th> Summary </th><th class="summaryTableOwnerCol">Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#event:change" class="signatureLink">change</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the value of the selected RadioButton component in this group changes.</td><td class="summaryTableOwnerCol">RadioButtonGroup</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#event:itemClick" class="signatureLink">itemClick</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user selects a RadioButton component in the group.</td><td class="summaryTableOwnerCol">RadioButtonGroup</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#event:valueCommit" class="signatureLink">valueCommit</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when values are changed programmatically or by user interaction.</td><td class="summaryTableOwnerCol">RadioButtonGroup</td></tr></table></div><script language="javascript" type="text/javascript"><!--
showHideInherited();
--></script><div class="MainContent"><div class="detailSectionHeader">Property Detail</div><a name="propertyDetail"></a><a name="enabled"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">enabled</td><td class="detailHeaderType">property</td></tr></table><div class="detailBody"><code>enabled:Boolean</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version :&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version :&nbsp;</b></td><td>Flex 4</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions :&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
Determines whether selection is allowed. Note that the value returned
only reflects the value that was explicitly set on the
<code>RadioButtonGroup</code> and does not reflect any values explicitly
set on the individual RadioButtons.
</p><p> The default value is <code>true</code>.</p><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get enabled():Boolean</code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set enabled(value:Boolean):void</code><br/></div><a name="propertyDetail"></a><a name="numRadioButtons"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">numRadioButtons</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>numRadioButtons:int</code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version :&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version :&nbsp;</b></td><td>Flex 4</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions :&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
The number of RadioButtons that belong to this RadioButtonGroup.
</p><p> The default value is <code>"0"</code>.</p><p>This property can be used as the source for data binding.</p><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get numRadioButtons():int</code><br/></div><a name="propertyDetail"></a><a name="selectedIndex"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">selectedIndex</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>selectedIndex:int</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version :&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version :&nbsp;</b></td><td>Flex 4.10</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions :&nbsp;</b></td><td>Flash Player 11.1, AIR 3.4</td></tr></table><p></p><p></p><p>
The index of the selected RadioButton component in the group.
If a RadioButton is not selected, this property is <code>-1</code>.
</p><p> The default value is <code>-1</code>.</p><p>This property can be used as the source for data binding.</p><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get selectedIndex():int</code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set selectedIndex(value:int):void</code><br/></div><a name="propertyDetail"></a><a name="selectedValue"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">selectedValue</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>selectedValue:Object</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version :&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version :&nbsp;</b></td><td>Flex 4</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions :&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
The <code>value</code> property of the selected
RadioButton component in the group, if it has been set,
otherwise, the <code>label</code> property of the selected RadioButton.
If no RadioButton is selected, this property is <code>null</code>.
<p>If you set <code>selectedValue</code>, Flex selects the
first RadioButton component whose <code>value</code> or
<code>label</code> property matches this value.</p>
</p><p> The default value is <code>null</code>.</p><p>This property can be used as the source for data binding.</p><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get selectedValue():Object</code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set selectedValue(value:Object):void</code><br/></div><a name="propertyDetail"></a><a name="selection"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">selection</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>selection:<a href="../../spark/components/RadioButton.html">RadioButton</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version :&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version :&nbsp;</b></td><td>Flex 4</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions :&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
Contains a reference to the currently selected
RadioButton component in the group.
You can access this property in ActionScript only;
it is not settable in MXML.
Setting this property to <code>null</code> deselects the currently
selected RadioButton component. A change event is not dispatched.
</p><p> The default value is <code>null</code>.</p><p>This property can be used as the source for data binding.</p><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get selection():<a href="../../spark/components/RadioButton.html">RadioButton</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set selection(value:<a href="../../spark/components/RadioButton.html">RadioButton</a>):void</code><br/></div><a name="constructorDetail"></a><div class="detailSectionHeader">Constructor Detail</div><a name="RadioButtonGroup()"></a><a name="RadioButtonGroup(mx.core.IFlexDisplayObject)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">RadioButtonGroup</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">Constructor</td></tr></table><div class="detailBody"><code>public function RadioButtonGroup(document:<a href="../../mx/core/IFlexDisplayObject.html">IFlexDisplayObject</a> = null)</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version :&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version :&nbsp;</b></td><td>Flex 4</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions :&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p>
Constructor.
</p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">document</span>:<a href="../../mx/core/IFlexDisplayObject.html">IFlexDisplayObject</a></code> (default = <code>null</code>)<code></code> &mdash; In simple cases where a class extends EventDispatcher,
the <code>document</code> parameter should not be used.
</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso">flash.events.EventDispatcher</div></div><a name="methodDetail"></a><div class="detailSectionHeader">Method Detail</div><a name="getRadioButtonAt()"></a><a name="getRadioButtonAt(int)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getRadioButtonAt</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td></tr></table><div class="detailBody"><code> public function getRadioButtonAt(index:int):<a href="../../spark/components/RadioButton.html">RadioButton</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version :&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version :&nbsp;</b></td><td>Flex 4</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions :&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
Returns the RadioButton component at the specified index.
</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">index</span>:int</code> &mdash; The 0-based index of the RadioButton in the
RadioButtonGroup.
</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../spark/components/RadioButton.html">RadioButton</a></code> &mdash; The specified RadioButton component if index is between
0 and <code>numRadioButtons</code> - 1. Returns
<code>null</code> if the index is invalid.
</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso">numRadioButtons</div></div><a name="initialized()"></a><a name="initialized(Object,String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">initialized</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function initialized(document:Object, id:String):void</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version :&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version :&nbsp;</b></td><td>Flex 4</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions :&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
Implementation of the <code>IMXMLObject.initialized()</code> method
to support deferred instantiation.
</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">document</span>:Object</code> &mdash; The MXML document that created this object.
</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">id</span>:String</code> &mdash; The identifier used by document to refer to this object.
If the object is a deep property on document, <code>id</code> is null.
</td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="../../mx/core/IMXMLObject.html" target="">mx.core.IMXMLObject</a></div></div><div class="detailSectionHeader"> Event Detail </div><a name="event:change"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">change</td><td class="detailHeaderType"> Event </td></tr></table><div class="detailBody"><span class="label">Event Object Type: </span><code>flash.events.Event</code><br/><span class="label">Event.type property = </span><code>flash.events.Event.CHANGE</code><br/><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version :&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version :&nbsp;</b></td><td>Flex 4</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions :&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
Dispatched when the value of the selected RadioButton component in
this group changes.
</p></div><a name="event:itemClick"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">itemClick</td><td class="detailHeaderType"> Event </td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><span class="label">Event Object Type: </span><a href="../../mx/events/ItemClickEvent.html"><code>mx.events.ItemClickEvent</code></a><br/><span class="label">ItemClickEvent.type property = </span><a href="../../mx/events/ItemClickEvent.html#ITEM_CLICK"><code>mx.events.ItemClickEvent.ITEM_CLICK</code></a><br/><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version :&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version :&nbsp;</b></td><td>Flex 4</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions :&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
Dispatched when a user selects a RadioButton component in the group.
You can also set a handler for individual RadioButton components.
This event is dispatched only when the
user interacts with the radio buttons by using the mouse.
</p>
The <code>ItemClickEvent.ITEM_CLICK</code> constant defines the value of the
<code>type</code> property of the event object for an <code>itemClick</code> event.
<p>The properties of the event object have the following values:</p>
<table class="innertable" ><tr><th>Property</th><th>Value</th></tr><tr><td><code>bubbles</code></td><td>false</td></tr><tr><td><code>cancelable</code></td><td>false</td></tr><tr><td><code>currentTarget</code></td><td>The Object that defines the
event listener that handles the event. For example, if you use
<code>myButton.addEventListener()</code> to register an event listener,
myButton is the value of the <code>currentTarget</code>. </td></tr><tr><td><code>index</code></td><td>The index of the navigation item that was clicked.</td></tr><tr><td><code>item</code></td><td>The item in the data provider of the navigation
item that was clicked.</td></tr><tr><td><code>label</code></td><td>The label of the navigation item that was clicked.</td></tr><tr><td><code>relatedObject</code></td><td>The child object that generated the event.</td></tr><tr><td><code>target</code></td><td>The Object that dispatched the event;
it is not always the Object listening for the event.
Use the <code>currentTarget</code> property to always access the
Object listening for the event.</td></tr></table>
</div><a name="event:valueCommit"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">valueCommit</td><td class="detailHeaderType"> Event </td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><span class="label">Event Object Type: </span><a href="../../mx/events/FlexEvent.html"><code>mx.events.FlexEvent</code></a><br/><span class="label">FlexEvent.type property = </span><a href="../../mx/events/FlexEvent.html#VALUE_COMMIT"><code>mx.events.FlexEvent.VALUE_COMMIT</code></a><br/><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version :&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version :&nbsp;</b></td><td>Flex 4</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions :&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
Dispatched when values are changed programmatically
or by user interaction.
<p>Because a programmatic change triggers this event, make sure
that any <code>valueCommit</code> event handler does not change
a value that causes another <code>valueCommit</code> event.
For example, do not change the<code>selectedValue</code>
property or <code>selection</code> property in a <code>valueCommit</code>
event handler. </p>
</p>
The <code>FlexEvent.VALUE_COMMIT</code> constant defines the value of the
<code>type</code> property of the event object for a <code>valueCommit</code>
event.
<p>The properties of the event object have the following values:</p>
<table class="innertable" ><tr><th>Property</th><th>Value</th></tr><tr><td><code>bubbles</code></td><td>false</td></tr><tr><td><code>cancelable</code></td><td>false</td></tr><tr><td><code>currentTarget</code></td><td>The Object that defines the
event listener that handles the event. For example, if you use
<code>myButton.addEventListener()</code> to register an event listener,
myButton is the value of the <code>currentTarget</code>. </td></tr><tr><td><code>target</code></td><td>The Object that dispatched the event;
it is not always the Object listening for the event.
Use the <code>currentTarget</code> property to always access the
Object listening for the event.</td></tr></table>
</div><a name="includeExamplesSummary"></a><div class="detailSectionHeader">Examples</div><div class="exampleHeader">RadioButtonGroupExample.mxml</div><div class="detailBody"><div class="listing"><pre>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--&gt;
&lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"&gt;
&lt;fx:Script&gt;
&lt;![CDATA[
import mx.controls.Alert;
import mx.events.ItemClickEvent;
private function handlePayment(event:ItemClickEvent):void {
if (event.currentTarget.selectedValue == "check") {
Alert.show("You opted to pay by check.");
} else if (event.currentTarget.selectedValue == "credit") {
Alert.show("You opted to pay by credit card.");
}
}
]]&gt;
&lt;/fx:Script&gt;
&lt;fx:Declarations&gt;
&lt;s:RadioButtonGroup id="paymentType" itemClick="handlePayment(event);"/&gt;
&lt;/fx:Declarations&gt;
&lt;s:VGroup paddingLeft="10" paddingTop="10"&gt;
&lt;s:RadioButton groupName="paymentType"
id="payCheck"
value="check"
label="Pay by check"
width="150"/&gt;
&lt;s:RadioButton groupName="paymentType"
id="payCredit"
value="credit"
label="Pay by credit card"
width="150"/&gt;
&lt;/s:VGroup&gt;
&lt;/s:Application&gt;
</pre></div><script language="javascript" type="text/javascript"><!-- AC_FL_RunContent( "src", "examples/RadioButtonGroupExample", "width", "100%",
"height","400px", "salign", "TL", "id", "example1", "quality", "high", "bgcolor", "", "name",
"example1", "flashvars","", "allowScriptAccess","sameDomain", "type",
"application/x-shockwave-flash","pluginspage", "http://www.macromedia.com/go/getflashplayer" ); --></script></div><br/><br/><hr><br/><p></p><center class="copyright"><footer>The Apache Software Foundation</footer><br/>Wed Nov 15 2017, 09:50 AM +01:00 </center></div></body></html><!--The Apache Software Foundation<br/>Wed Nov 15 2017, 09:50 AM +01:00 -->