# Drag@drop inside movieclip help needed plaese

**URL:** <https://forum.kirupa.com/t/drag-drop-inside-movieclip-help-needed-plaese/55375>\
**Category:** Uncategorized\
**Created:** [June 23, 2004, 12:41pm UTC](https://forum.kirupa.com/t/drag-drop-inside-movieclip-help-needed-plaese/55375 "2004-06-23T12:41:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![welshy](https://avatars.discourse-cdn.com/v4/letter/w/2bfe46/32.png) [@welshy](https://forum.kirupa.com/u/welshy)\
**Post date:** [June 23, 2004, 12:41pm UTC](https://forum.kirupa.com/t/drag-drop-inside-movieclip-help-needed-plaese/55375/1 "2004-06-23T12:41:33Z")

</div>

Im trying to do a ‘drap&drop onto a hit target’ inside a movieclip, the usual script doesn’t work as it would if it was on the maintimeline of a movie it soenst seem to pickup the hittarget, the basic code is

\_root.dragndrop.ball.onPress = function() {  
this.startDrag();  
};  
\_root.dragndrop.ball.onRelease = function() {  
this.stopDrag();  
if (ball.\_droptarget == “/hittarget”) {  
ball.\_visible = false;  
}  
};

anyone got any ideas? The hitatrget and ball have to be in the dragndrop movieclip, thanks
