1 Reply Latest reply on Jul 30, 2007 9:42 AM by ntsiii

    Editing XMLListCollection

    Bora Imamoglu
      This is what I need but the problem is in this line:
      inventory.getItemAt(i).MemberUniversalId = member;
      it does not change the value of MemberUniversalId;

      private function updateItemInList(id:int,slot:int,member:int):void
      {
      var i:int=0;
      for (i=0;i<inventory.length;i++)
      {
      if (Number(inventory.getItemAt(i).ItemId) == id && Number(inventory.getItemAt(i).ItemSlot) == slot )
      {
      inventory.getItemAt(i).MemberUniversalId = member;
      }
      }
      inventory.refresh();
      }

      <mx:XMLListCollection id="inventory" source="{getInventory.lastResult.*}" filterFunction="InvfilterItemsByType"/>

      Any help will be greatly appriciated....