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

  • SEARCH
  • Home
  • 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'm creating a lot of custom controls and adding them to a FlowLayoutPanel. There
I've been creating a lot of my own custom attributes in my XHTML documents
I have run into a strange problem, i am creating a lot of dynamically
I am creating (possible a lot) of objects as a result from a WDS
I have researched a lot about creating my own app for android with a
The system I work with is creating a whole lot of objects and garbage
A lot of Java ME tutorials use the startApp() method for creating and initializing
I'm creating a game where a lot of images are being used in Actionscript
I do a lot of development that requires creating local networks on my machine
i have seen a lot of screencasts where the author is creating methods with

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.