I think the best way to implement this would be to have a RadioGroup class that would instantiate through static functions of the RadioButton class. A static variable of the RadioGroup class would manage RadioGroup instances, it would add and remove RadioGroup instances through a static API. A static function of the RadioButton would take the RadioButton instances radioGroupID property and check if it exists, if it does it would add the instance to the radio group, if not it would instantiate a new radio group.
Each radio button would have an instance of the radio group they belonged to, when they were selected, they would just call a select() style function of their own radio group and submit their index/id to be activated. You should handle activation and deactivation of radio buttons from the radio group class. You should also implement a die() method which derefrences radio buttons from radio groups so that radio group instances are destroyed when they no longer contain any radio buttons. Hope this helps, M. On 4/21/06, Julian 'Julik' Tarkhanov <[EMAIL PROTECTED]> wrote: > > I would like to implement a radio-like component and provide a > groupName for it (I don't use MM components because they do not fit > my application). > > Is there a way to dynamically retrieve all siblings of the > component's instance which have the same class (or subclass) of the > component and the same groupName dynamically? Or will my best option > be just implementing groupName as an accessor and refrencing > dependent Radio buttons elsewhere? > > That is, if I have 5 instances of RadioCompnent inside a specific > timeline, can I programmatically retrieve all of them? > -- > Julian 'Julik' Tarkhanov > please send all personal mail to > me at julik.nl > > > _______________________________________________ > [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 > _______________________________________________ [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

