# Help with dragging

**URL:** <https://forum.kirupa.com/t/help-with-dragging/2418>\
**Category:** flash\
**Created:** [April 4, 2002, 8:43pm UTC](https://forum.kirupa.com/t/help-with-dragging/2418 "2002-04-04T20:43:22Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [April 4, 2002, 8:43pm UTC](https://forum.kirupa.com/t/help-with-dragging/2418/1 "2002-04-04T20:43:22Z")

</div>

please help. I’m trying to make a draggable menu in a jukebox. I did it the same as in the draggable menu tut. the difference is, that the whole menu is inside of a clip with masking and such. the problem is I don’t get any errors when I test it but the dragger clip just disappears when I click it. anyone encountered this before?

---

<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:** [April 5, 2002, 1:45am UTC](https://forum.kirupa.com/t/help-with-dragging/2418/2 "2002-04-05T01:45:31Z")

</div>

there must be a problem in your code. you can e-mail me the FLA and i can take a look.

---

<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:** [April 5, 2002, 4:32pm UTC](https://forum.kirupa.com/t/help-with-dragging/2418/3 "2002-04-05T16:32:47Z")

</div>

fla has been emailed.

---

<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:** [April 5, 2002, 5:17pm UTC](https://forum.kirupa.com/t/help-with-dragging/2418/4 "2002-04-05T17:17:50Z")

</div>

on the dragger you have this code::

onClipEvent (load) {  
yold = \_y ;  
}  
onClipEvent (enterFrame) {  
if (dragging) {  
\_y = \_root.\_ymouse ;  
dydrag = \_y + yold ;  
yold = \_y;  
\_root.sounds.screen.soundlinks.\_y += 3\*dydrag ;  
}  
}

just change the \_y = \_root.\_ymouse to \_y = \_parent.\_ymouse

that will fix it. What happened was that it was not disappearing, it was moving down off of the screen because when you called for \_root.\_ymouse, its y value was off the screen for the root of that MC, however, for the parent of the MC it works perfectly fine.

If you have anymore questions e-mail or post. Very nice looking site. I wish I had the capabilities and the imagination to make up a site like that. Very professional looking. Very clean. Nice Job. Let me know when it is finished.

---

<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:** [April 5, 2002, 8:31pm UTC](https://forum.kirupa.com/t/help-with-dragging/2418/5 "2002-04-05T20:31:25Z")

</div>

thank you! (jumps for joy) thank you!  
I’ll post when the site goes up.
