Hey everyone. I am creating movieclips and in each movieclip I am creating a
radiobutton. If I have all the radiobuttons in 1 movieclip symbol, then the
radioGroup works fine for them, but if I place each radiobutton in a seperate
movieclip (which i need) then the radioGroup does not work anymore. Is this
because a new instance of the RadioButtonGroup class is being created in each
movieclip? Does anyone have a solution for this? Any help would be great!
thanks!
var content_root =
_root.finPage.standardFins_acc.selectedChild.scroller.contentMain;
for (var i = 0; i<totalConfigs; i++) {
var mc:MovieClip = content_root.attachMovie("configLayout", "config_"+i,
content_root.getNextHighestDepth());
mc._y = i*(mc._height+2);
var rb = mc.createClassObject(RadioButton, "rb_"+i, mc.getNextHighestDepth(),
{label:"first"+i, groupName:"configGroup"});
trace("Group name is : "+rb.groupName);
}
Output::
radioGroup
radioGroup
Mike Boutin
_______________________________________________
[email protected]
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