Hi Madhavi

post some sample code so that we can get in to your problem.

here is sample code which i am adding the checkboxes to a hbox
<mx:HBox id="hb"/>
in action script create checkboxes and add the to the hbox.
for(var i:int=0;i<hb.childrens().length;i++)
{
if((hb.getChildAt(i) as CheckBox).selected)
{
Alert.show("checkbox selected"+(hb.getChildAt(i) as CheckBox).id);
}
}
i think this might help you.

Regards
Santosh Kumar Molugu
http://techflex.blog.com
On Jun 1, 10:38 am, Vikas Madan <[email protected]> wrote:
> Madhavi, If you don't mind me asking...What is it that you want to do with
> the checkbox's id ?
>
> On Tue, May 31, 2011 at 1:43 AM, madhavi chinni <[email protected]
>
>
>
> > wrote:
> > Hi,
>
> > I created some 10 checkbox's in a loop at runtime in actionscript.I
> > need get the IDs of the checkbox's which are checked at runtime when I
> > click on a button.But I am getting null exception when I click on the
> > button.
> > Can anyone help me on this.
>
> > Thanks,
> > Madhavi
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/flex_india?hl=en.
>
> --
> Vikas

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to