# Dragging Object in Array - Which One?

**URL:** <https://forum.kirupa.com/t/dragging-object-in-array-which-one/329801>\
**Category:** flash\
**Created:** [October 18, 2012, 3:25am UTC](https://forum.kirupa.com/t/dragging-object-in-array-which-one/329801 "2012-10-18T03:25:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry\_Crun](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@Henry\_Crun](https://forum.kirupa.com/u/Henry_Crun)\
**Post date:** [October 18, 2012, 3:25am UTC](https://forum.kirupa.com/t/dragging-object-in-array-which-one/329801/1 "2012-10-18T03:25:19Z")

</div>

I have an array of movieclips and have set up my game so I can drag any of them. I cannot figure out, when I pick one to drag, how to identify it so I can do logic on its x and y. I bet there is a neat way but I don’t know enough to zero in on it. Thanks.

To clarify: var obArray:Array = [ob0,ob1,ob2,ob3];

When I drag, how to get number of array element?
