2 Replies Latest reply on Apr 6, 2010 9:14 PM by Vikash.kumar29

    addEventListener breaks for loop

    hidarikani Level 2

      The loop executes once, but I'm sure thee dataProvider's length is 5

       

      for each (var c:Object in dataProvider) {
           c.myProperty.addEventListener(
                FlexEvent.VALUE_COMMIT,
                dataProviderListener
           );               
      }
      

       

      Why does the addEventListener break the loop ???