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

Reply via email to