Need to identify the component's selectedItem

Posted by theband on Stack Overflow See other posts from Stack Overflow or by theband
Published on 2010-03-17T10:26:44Z Indexed on 2010/03/17 10:31 UTC
Read the original article Hit count: 253

Filed under:

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));
                }

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.

© Stack Overflow or respective owner

Related posts about gnu-flex