Hey, I just worked with radiobutton group for first time (at least for 2
years).  Had some problems on how to access the radioGroup object itself.
Finally used var radiogroup = eval(myradioButton.groupName) and then added
to it the event listener.  Problem is, to make it work I had to include the
path to the movieclip containing the radiobutton, like this var radiogroup =
eval(path +"."+myradioButton.groupName).  So I understand the
radiobuttongroup object belongs to the _parent.myradioButton movieclip.  In
your case it seems that you get multiple radiobutton groups, one for each
movieclip.  You have to find some other way to do it.

Alberto

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mike Boutin
Sent: Wednesday, July 19, 2006 8:35 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Radiobutton groupName issue *URGENT*


I am creating multiple movieclips with 1 radiobutton in each.  I want
them all the tie into 1 radiobutton Group, but the follow code doesnt
seem to work.  Can anyone tell me what im doing wrong and how to go
about fixing it?


I created a test case to show exactly what im trying to do...


import mx.controls.RadioButton;
for (var i =0; i<10; i++){
        var mc:MovieClip = this.createEmptyMovieClip("rbHolder_"+i,
this.getNextHighestDepth());
        var rb = mc.createClassObject(RadioButton, "rb_"+i,
mc.getNextHighestDepth(), {label:"rb_"+i, groupName:"configGroup"});
        mc._y = i * 20;
        trace("Group Name: "+rb.groupName);
}



Mike Boutin
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to