3 Replies Latest reply on May 30, 2006 12:14 PM by Ray Greenwell

    Cannot convert TabNavigator.getChildren() to mx.collections.ArrayCollection

      I seem to get the following error when I try to construct an ArrayCollection from a TabNavigator.getChildren() array.

      TypeError: Error #1034: Type Coercion failed: cannot convert []@602c431 to mx.collections.ArrayCollection.

      tnRequestList is a TabNavigator that starts empty

      The code looks like this:
      var aryChildren:ArrayCollection;

      if(tnRequestList.getChildren().length > 0) {
      aryChildren = ArrayCollection(tnRequestList.getChildren());