# Drag and drop

**URL:** <https://forum.kirupa.com/t/drag-and-drop/241347>\
**Category:** Uncategorized\
**Created:** [October 12, 2007, 12:53pm UTC](https://forum.kirupa.com/t/drag-and-drop/241347 "2007-10-12T12:53:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![furura](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@furura](https://forum.kirupa.com/u/furura)\
**Post date:** [October 12, 2007, 12:53pm UTC](https://forum.kirupa.com/t/drag-and-drop/241347/1 "2007-10-12T12:53:12Z")

</div>

hi,

actually this is pretty urgent … um … I was making this flash file that allows the user click, drag and drop the (for example) circles. However, I have many frames of different shapes and sizes of circles.

My problem is; when I run the swf file, I drag a circle from frame 1 around, when I go to frame 2, the circle dragged from frame 1 disappears back to its original place. (much like a reset)

I want to make the clip stay in place (position after i dragged it) even as when I change to the other frames.

How should I write the code for it? Thanks alot!

Right now my code is only the following, for each of the circle movie clips;

on (press){  
StartDrag("");  
dragging=true  
}

on (release, releaseOutside){  
StopDrag();  
dragging=false  
}
