1 Reply Latest reply on Jul 9, 2007 6:33 AM by LordPathogen

    Problem assigning array to DataPointer

    LordPathogen


      Hi, I am trying to see if the label for a list item (in List #1) matches my test string. When it does, I push it into an Array. When that is done, I then try to set the array as the dataProvider value for list #2. So far, everything works except for the assignment. That seems to get hung for some reason. Any ideas? Thanks!

      private function initializeWithPreviousSelections():void{
      var previousSelections:Array = new Array();
      for (var i:Number = 0; i < xAvailableList.dataProvider.length; i++) {
      if("test" == xAvailableList.dataProvider .label){
      previousSelections.push(xAvailableList.dataProvider
      );
      }
      }
      xSelectedList.dataProvider = previousSelections;
      }