Re: [flexcoders] AS/Flex equivilent of getElementById() ??

2007-05-18 Thread Patrick Lemiuex
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 com

RE: [flexcoders] AS/Flex equivilent of getElementById() ??

2007-05-18 Thread Alex Harui
is referred to in the block as: checkbox1 this.checkbox1 this["checkbox1"] as in: trace(checkbox1.selected) // get the selected property There is no function since they are actually properties on the document. Subdocuments use parentDocument to talk to parent documen