Hi there,

Since the radio buttons are children of custom components, they don't
live in the same scope as each other.   To overcome this and have the
RadioButtons behave as a group:

    * Place a RadioButtonGroup in the main class: <mx:RadioButtonGroup
id="myRadioButtonGroup"/>
    * Use something like this to group the RadioButtons: <mx:RadioButton
groupName="parentDocument.myRadioButtonGroup"/>

RadioButton extends button, so the click event will be dispatched.  For
a RadioButtonGroup, the itemClickEvent is dispatched.

-TH

--- In [email protected], "devworkit" <[EMAIL PROTECTED]> wrote:
>
> I am having a problem where if I place several custom RadioButtons on
> my page, they behave independently (i.e. they all can be selected at
> the same time and DO NOT behave as a group) even if I set their
> groupName to the same thing.
>
> Basically, I created a custom component that extends Canvas and on
> that canvas I placed a RadioButton and a TextArea. Let's call this
> custom component MyCustomRadio.
>
> If I place several MyCustomRadio's on my page, and run it, the user
> can select each one of these radio buttons (all of them in selected
> state at the same time). How do I get these radiobuttons to know
> about each other so they behave like a group (setting the groupName to
> the same has no affect).
>
> I think the issue is that MyCustomRadio does not actually extend
> RadioButton, rather it extends Canvas and the their is a radionbutton
> on that. Is there some sort of event that does not bubble up letting
> my page know that the radiobutton is selected?
>
> Any ideas? Thanks!!
>


Reply via email to