3 Replies Latest reply on Oct 20, 2007 8:46 AM by ntsiii


      I am having a problem with static ArrayCollection.
      I have an array collection which has static modifier. When I try calling getItemIndex on the arrayCollection it doesn;t return the value
      here's the code snippet
      public function getSelectedIndex(data:Object):int
      var idx:int = 0;

      for each(var fd:Object in businessObjects.TradeReject._arrAllFunds)

      if(data.fundFamily_id == fd.fundid)
      trace("itme"+ fd.fundid);... // getting trace on this

      idx = businessObjects.TradeReject._arrAllFunds.getItemIndex(fd);
      trace("aa"); // I am not getting any trace here
      trace("idx" + idx); // I am not getting any trace here


      return idx;