Re: [flexcoders] Looping creating objects, how do you do this: var myRadio[b+i]:RadioButton = new RadioButton();

2006-11-19 Thread slangeberg
Not sure what your requirements are, but I usually just track dynamic objects in an array:** var radioButtons:Array = new Array(); for ( var i:int = 0; inumBtns; i++ ) { var rb:RadioButton = new RadioButton(); rb.property = value; . . radioButtons.push( rb ); } On 11/17/06, dj [EMAIL

Re: [flexcoders] Looping creating objects, how do you do this: var myRadio[b+i]:RadioButton = new RadioButton();

2006-11-19 Thread Michael Schmalle
Another thing could be; myRadio[b+i]:RadioButton = new RadioButton(); if you are trying to name them var button:RadioButton = new RadioButton(); myRadio.name = b + i; then if you are trying to query the button by name; var button:RadioButton = RadioButton(myParent.getChildByName(b + i));

Re: [flexcoders] Looping creating objects...

2006-11-18 Thread dj
I know that mxml makes this stuff easy, but for me I prefer using the Actionscript then using a repeater tag... OK, so I don't know why I didn't think of this earlier, sometimes i wonder where my head's at? private var myRadios:Array = new Array(); private function

[flexcoders] Looping creating objects, how do you do this: var myRadio[b+i]:RadioButton = new RadioButton();

2006-11-17 Thread dj
I know I've posted this already. Sorry, just trying to get this populated in Actionscript, so I thought I'd post again since I've been kind of stuck on this point here. Thanks, Patrick