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 673687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:37:24+00:00 2026-05-14T00:37:24+00:00

I am creating a lot of dynamic flex components like RadioButton, Combo Box, CheckBox.

  • 0

I am creating a lot of dynamic flex components like RadioButton, Combo Box, CheckBox.

if(type=="mx.controls.CheckBox"){
            //if(rep.currentIndex<5){
                for each(j in x){
                k=createNewInstanceOfClass(rep.currentItem.type);           
                k.id="radioGroup"+rep.currentItem;
                k.label=j.linkname;
                k.data=j.linkname;
                linkPanel[rep.currentIndex].addChild(DisplayObject(k));
                }

MXML

<mx:Panel layout="horizontal" id="linkPanel" title="Evaluation" fontWeight="bold" height="100%" backgroundColor="0xFFF7E6"
                                borderThicknessLeft="0" borderThicknessRight="0" cornerRadius="10" headerHeight="20" dropShadowEnabled="false" roundedBottomCorners="true" verticalScrollPolicy
                                ="off" horizontalScrollPolicy="off" headerColors="[#ffffff,#ffffff]" width="100%">
                                <mx:Form>
                                <mx:FormItem paddingLeft="2" paddingTop="2" paddingBottom="2">
                                    <mx:Repeater id="rep2" dataProvider="{sendToActionScript(rep.currentItem.link)}" />
                                </mx:FormItem>
                                </mx:Form>
                            </mx:Panel>

When i click on Submit finally i need to get all the selected Values in each question. All the components are dynamically created at runtime.

  • 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-14T00:37:25+00:00Added an answer on May 14, 2026 at 12:37 am

    You can list the children of linkPanel with getChildren()
    when looping through them, read the “selected” property

            public function test():void {
                for each ( var obj:Object in linkPanel.getChildren()) {
                    if( obj is RadioButton) {
                        Alert.show( (obj as RadioButton).selected.toString());
                    }
    
                }
            }
    

    If you are creating a list of radio buttons belonging to a group, look into “selectedValue” for this group

    <mx:RadioButtonGroup id="rbg" />
    <mx:RadioButton id="answer1" group="{rbg}" label="Answer 1" />
    
    public function test():void {
        Alert.show( rbg.selectedValue.toString())
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script that is creating a lot of configurable products and their
I am interesting in creating a better User Experience (UX). There are a lot
I have been thinking and learning a lot about forms lately trying to add
I want to create something similar to Heroku (first I was thinking in EngineYard-like
I'm creating a CLR user defined function in Sql Server 2005 to do some
I am looking into creating a new website using ASP.NET 4.0. I am currently
I want to test a program's memory management capabilities, for example (say, program name
The W3C HTML validator reports errors in lines which are inside script <script> tags.
Greetings, I am writing a short simple script, but has became too crowded. Stuff
I'm still wrapping my head around some of the nuances of memory management in

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.