title: how could I traverse through children of a UIComponent Class in flex
body: <p>I am dynamically creating a UI component based on XML templates stored in database. Now I want to access one of the child component of this UIComponent Class. I dont see any children property in this class? How could I possibly traverse through each child comppnent of this class and set its properties according to some logic in code(which I could not do in templates itself).</p>
  
  <p>Basically what I want to do is something like this:</p>
  
  <pre><code>var cover:UICoomponent = generateScreen()
  for each(var obj:UIComponent in cover.children){
  if (obj.id =="myComponent"){
   obj.SomProperty = "SomeValue";
   }
  }
  </code></pre>
  
  <p>Any help will be greatly appreciated. Thanks.</p>