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
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));
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
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
4 matches
Mail list logo