|
When you assign an 'id' in MXML, an
instance variable containing a reference to the component gets created in your
Application or MXML component. So you would simply do this: <mx:Script> private var r:RadioButton; private function someMethod():void { ... r = new RadioButton(); addChild(r); ... } </mx:Script> You can then use 'r' anywhere in your
script to access the RadioButton, just as if you had declared <mx:RadioButton
id="r"/> - Gordon From: I achieved that but how do I assign unique ID’s
to each of them. Could you demonstrate this via a small snippet of code. Regards, Aasim From:
On 6/13/06, Aasim <[EMAIL PROTECTED]> wrote: Hi, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Duplicating controls dynamically Gordon Smith
- RE: [flexcoders] Duplicating controls dynamically Gordon Smith
- RE: [flexcoders] Duplicating controls dynamically Jason Szeto

