2 Replies Latest reply on Jan 19, 2009 11:18 AM by bmilesp

    dataProviders ad Drag and Drop

    bmilesp Level 1
      Hello all,

      i'm trying to pass data from a 2 tilelists. I pass the data through an item that i drag and drop between the tilelists. Now, i want to change an xml attribute in the data once the item is dropped in the new tilelist as described below:

      private function chartDragDropHandler(event:DragEvent):void {
      if (event.dragSource.hasFormat("items"))
      {
      var dropTarget = event.currentTarget;
      event.dragSource.dataForFormat('items')[0].@inventory_glyph_id = dropTarget.id;
      }
      }

      when i trace the data in the dropTarget, the data is passed except the inventory_glyph_id is not changed as expected. Is there another way to achieve this? TIA -b