2 Replies Latest reply on Aug 7, 2008 4:57 AM by January_jsd

    Iterating Through Controls

    January_jsd
      Hi, I'm new here, and new to Flex3, but really like what I've learned so far.

      But, I've come across a problem. How do you iterate through controls/components? In VB.net you'd do something like:

      For Each myControl As Control In Me.Controls
      ' do stuff here
      Next

      I've tried looking at containers/using the Canvas as a container to iterate through, but I can't figure out how to actually loop through the controls - this is for a simple text validation function. Everything seems to point to the 'For Each .. in' statement, but ... I'm stuck.

      Thanks in advance