# \_droptarget issue

**URL:** <https://forum.kirupa.com/t/-droptarget-issue/257823>\
**Category:** flash\
**Created:** [April 17, 2008, 1:53pm UTC](https://forum.kirupa.com/t/-droptarget-issue/257823 "2008-04-17T13:53:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JOliver](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@JOliver](https://forum.kirupa.com/u/JOliver)\
**Post date:** [April 17, 2008, 1:53pm UTC](https://forum.kirupa.com/t/-droptarget-issue/257823/1 "2008-04-17T13:53:15Z")

</div>

Hi there,

I’m trying to slide a button over a certain area - and on that happening have my movie go to a new part of the time line. I’m currently using the code:

slider\_btn.onRelease = function(){  
stopDrag();  
If (this.\_droptarget == mc\_screen.mc\_slider.green\_box)  
\_root.gotoAndStop(2);  
}

The problem is that with this code, the stopDrag doesnt work at all, and if I release the mouse anywhere (not over “green\_box”) I’m returned to \_root, keyframe 2.

If I remove the code: \_root.gotoAndStop(2); the stopDrag works again, but obviously I’ve lost the \_droptarget functionality.

Can anyone help, its driving me nuts!!

Thanks, J.
