# List Drag and Drop

**URL:** <https://forum.kirupa.com/t/list-drag-and-drop/303224>\
**Category:** flash\
**Created:** [January 16, 2010, 7:01pm UTC](https://forum.kirupa.com/t/list-drag-and-drop/303224 "2010-01-16T19:01:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dewey](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dewey](https://forum.kirupa.com/u/dewey)\
**Post date:** [January 16, 2010, 7:01pm UTC](https://forum.kirupa.com/t/list-drag-and-drop/303224/1 "2010-01-16T19:01:20Z")

</div>

Hey Everyone,

I have set up some lists (\<mx:List\>) in Flex… I have drag and drop working fine, in that I can move elements easily from list to list. For some reason though, my DragInitiator and the currentTarget of my event are the same… even though I am obviously moving from list to list… Does anyone have an example of a function that I can call on my “dragComplete” event that will tell me the current target which will give me the id of the List object I am dropping on?

This is my current function which is always returning true…

```auto

private function _dropped(e:DragEvent):void
            {
                trace(e.dragInitiator == e.currentTarget);
            }

```

Thanks!

–d
