# Does anyone know how to drag and keep dragging once released?

**URL:** <https://forum.kirupa.com/t/does-anyone-know-how-to-drag-and-keep-dragging-once-released/245689>\
**Category:** flash\
**Created:** [December 3, 2007, 3:04am UTC](https://forum.kirupa.com/t/does-anyone-know-how-to-drag-and-keep-dragging-once-released/245689 "2007-12-03T03:04:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bumble\_bee](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bumble\_bee](https://forum.kirupa.com/u/bumble_bee)\
**Post date:** [December 3, 2007, 3:04am UTC](https://forum.kirupa.com/t/does-anyone-know-how-to-drag-and-keep-dragging-once-released/245689/1 "2007-12-03T03:04:50Z")

</div>

I can’t seem to wrap my head around this code. I really like how these crazy little critters keep multiplying but once you drag them onto the canvas they stick and are no longer draggable! Please help. I have attached this fun little file.

Thank you in advance!:beam:  
kelly

Here is the code:  
for (var i = 0; i \< \_root.icon\_mc.\_totalframes; ++i) {  
var newName:String = “icon\_mc” + i;  
var clip:MovieClip = \_root.icon\_mc.duplicateMovieClip(newName, 10000 + i);  
clip.gotoAndStop(i + 1);   
clip.\_x = iconX + i \* spacing;  
clip.\_y = iconY;  
clip.homeX = clip.\_x;  
clip.homeY = clip.\_y;  
clip.icon\_btn.onPress = function() {  
startDrag(this.\_parent);  
};  
clip.icon\_btn.onRelease = function() {  
stopDrag();  
\_root.iconReleased(this.\_parent);  
};  
}:beam:
