0 Replies Latest reply on Apr 12, 2008 7:35 PM by sxp001

    sxp001

    sxp001
      Hi,
      Can I get all children in whole application without knowing the container structure?
      I need to have all TextInput children from my Panel.
      I tried something like this, but not working.
      Thanks,
      Slava

      private function getAllChildren():void
      {
      var AllChildren:Array = PanelId.getChildren();
      for (var i:uint = 0; i < AllChildren.length; i++)
      {
      if (AllChildren .constructor == "[class TextInput]")
      {
      // Do something
      }
      }
      }