# Something to do with dragging perhaps? ^\_^;

**URL:** <https://forum.kirupa.com/t/something-to-do-with-dragging-perhaps--/185253>\
**Category:** flash\
**Created:** [April 12, 2006, 12:14am UTC](https://forum.kirupa.com/t/something-to-do-with-dragging-perhaps--/185253 "2006-04-12T00:14:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dragonmun](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dragonmun/32/2347_2.png) [@Dragonmun](https://forum.kirupa.com/u/Dragonmun)\
**Post date:** [April 12, 2006, 12:14am UTC](https://forum.kirupa.com/t/something-to-do-with-dragging-perhaps--/185253/1 "2006-04-12T00:14:50Z")

</div>

I’ve got a couple of things that I want to do with my menu, but I can’t  
find a tutorial to help with one such thing.

I want the user to be able to actually drag down the menu until it hits  
a point in which a sound will activate and it will hold it’s place…  
kind of like a pull chain on a lamp. I also want it so that they can  
pull it again and it’ll pull itself back up towards the top (back into  
it’s original position).

I can’t find a tutorial that talks about how to do that.

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 12, 2006, 1:14am UTC](https://forum.kirupa.com/t/something-to-do-with-dragging-perhaps--/185253/2 "2006-04-12T01:14:43Z")

</div>

my guess would be have the menu in an mc, with an invisible button that causes a startDrag() to occur on the menu movie clip, and then in an onEnterFrame test the \_x and \_y position of the menu movie clip, and if its at (or over) the final point, then remove the drag, set the x and y to the exact point and maybe set a variable that to zero that is used on the invisible button as a condition as to wether or not the drag will work (if you only want them to be able to move it into place once and then its stuck there).
