# Drag and drop menu!\<\<

**URL:** <https://forum.kirupa.com/t/drag-and-drop-menu/4976>\
**Category:** Uncategorized\
**Created:** [August 27, 2002, 3:30pm UTC](https://forum.kirupa.com/t/drag-and-drop-menu/4976 "2002-08-27T15:30:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abee](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@abee](https://forum.kirupa.com/u/abee)\
**Post date:** [August 27, 2002, 3:30pm UTC](https://forum.kirupa.com/t/drag-and-drop-menu/4976/1 "2002-08-27T15:30:45Z")

</div>

whaT I wAnt 2 do itS a Drag ANd dRop menu and i now how but my problem is that i want to have an action on realease.

i will like to put some icons on the left side and in the rigth side i what to put a square where u can realese those icon´s and see the description; in other words when u realease that mc, others starts to play

😕

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2002, 3:35pm UTC](https://forum.kirupa.com/t/drag-and-drop-menu/4976/2 "2002-08-27T15:35:51Z")

</div>

To do a draggable object you need a button insode a movie clip (at least you did in Flash 5). Place your movie clip instance on the Stage, and edit the Actions attached to the button inside it.

Easiest thing to do now is set the mode to Normal, and click on GotoAndPlay. It’ll automatically come up with a list of check boxes, so all you have to do is cjhoose onRelease() and then write your script.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2002, 5:33pm UTC](https://forum.kirupa.com/t/drag-and-drop-menu/4976/3 "2002-08-27T17:33:26Z")

</div>

You don’t need a button inside an mc in Flash MX. Just use the following code on your mc.

on(press){  
this.startdrag();  
}

on(release){  
this.stopdrag();  
}

Now, if you want it do something when it is inside your “actions” box, you may want to use droptarget.

The intention of droptarget is that you will check if the item being dragged has been dropped on a target mc. If it has, then you can perform the actions, etc…

Hope that helps.
