something like:
var myCheckBox:CheckBox = new CheckBox(); myCheckBox.id = "myCheckBoxID"; Works like this: myCheckBox.selected = true; On May 18, 2007, at 4:46 PM, carl_steinhilber wrote:
Given a string that represents the id of a given component, is there a way to get a handle to that component? Something like: var myCheckboxName:String = "checkbox1"; var myActualCheckbox:CheckBox = getElementById(myCheckboxName); myActualCheckbox.selected = true; I figured if nothing else I'd be able to eval() the string... but then I remembered that AS3 deprecated eval(). Anyone know of a way to do this? Thanks in advance! -Carl