Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 847017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:42:42+00:00 2026-05-15T06:42:42+00:00

Working in Flex 3, I have a series of components being rendered on a

  • 0

Working in Flex 3, I have a series of components being rendered on a canvas, each of which should represent a single potential selection, ideally in a RadioButtonGroup. So in my parent canvas I am defining the RadioButtonGroup, and each component provides a single RadioButton. However, this doesn’t seem to work.

Suppose there is a component called aComponent defined as such:

<mx:Canvas ...>
 ...
 <mx:RadioButton id="someButton" groupName="myRadioButtonGroup" ... />
</mx:Canvas>

The outer canvas:

<mx:Canvas id="outerCanvas" ...>
 ...
 <mx:Script>
   public function doesSomething():void
   {
     var myComponent:aComponent = new aComponent();
     outerCanvas.addChild(myComponent);    
   }
 </mx:Script>
 ...
 <mx:RadioButtonGroup id="myRadioButtonGroup" />
</mx:Canvas>

So my guess was that at this point if, say, four of these components were added, the radio buttons would behave in mutually exclusive fashion and I’d be able to access myRadioButtonGroup.selectedValue to get the current selection. However, it doesn’t seem to work that way.

Is what I’m trying to do even possible, or have I maybe just missed something?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:42:42+00:00Added an answer on May 15, 2026 at 6:42 am

    Edit – got to the bottom of it:

    The radiobuttongroup isn’t available to the component. It’s parent has ‘myRadioButtonGroup’, but not the component.. Pass the ‘myRadioButtonGroup’ to the constructor and use it..

    outerCanvas function:

    var myComponent:aComponent = new aComponent(myRadioButtonGroup);
    

    aComponent definition:

    private var radioGroup:RadioButtonGroup;
    function aComponent(radioGroup:RadioButtonGroup):void {
      this.radioGroup = radioGroup;
    }
    </mx:Script>
    <mx:RadioButton id="someButton" groupName="radioGroup" ... />
    

    untested, but hopefully gives you the idea

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Flex application embedded in a Flash application, which was working fine
i'm working on flex 3 project. in which i have one tileList in which
I'm working with the PieChart and PieSeries components in Flex, and have ran into
SOLVED I have a Flex/PHP app I'm working on. I have a single ArrayCollection
I have a working Flex/BlazeDS application (for simple AMF remoting) with the following settings:
I am working on flex dasboards and charting stuff. Till now I have build
Problem solved, see below Question I'm working in Flex Builder 3 and I have
I am working on a Flex Front End at the moment, and have been
I have read about the wonders (and sometimes bugs) of working with flex in
I'm working on Flash Builder with latest flex SDK. I have a problem getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.