# Move/drag problem

**URL:** <https://forum.kirupa.com/t/move-drag-problem/25986>\
**Category:** Uncategorized\
**Created:** [July 18, 2003, 8:07am UTC](https://forum.kirupa.com/t/move-drag-problem/25986 "2003-07-18T08:07:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fusi](https://avatars.discourse-cdn.com/v4/letter/f/cdc98d/32.png) [@fusi](https://forum.kirupa.com/u/fusi)\
**Post date:** [July 18, 2003, 8:07am UTC](https://forum.kirupa.com/t/move-drag-problem/25986/1 "2003-07-18T08:07:03Z")

</div>

hello flashgurus!

i have a problem with AS.

i used the kirupa random move script on some quads. it works fine!🙂

now i want to make em draggable (got that working too), but the problem is, theyre still in the move() function so the dragging doesnt work properly.

i want to be able to pick one of the moving quads and put them somewhere else on the stage, where they then wont move anymore. (excuse my bad english.) i hope my problem is clear.

i attached the file for you!

tnx a ton!:)+

fusi:)

---

<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:** [July 18, 2003, 10:23am UTC](https://forum.kirupa.com/t/move-drag-problem/25986/2 "2003-07-18T10:23:27Z")

</div>

u have to messure the time between  
onPress and on Release and then if it is  
for Exampel over 0.5 sec then move it and otherweise do not.  
i hope it helps

---

<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:** [July 18, 2003, 10:54am UTC](https://forum.kirupa.com/t/move-drag-problem/25986/3 "2003-07-18T10:54:50Z")

</div>

hi and tnx!

but i guess that wont help me…its not the problem to get them dragged, its the problem to somehow stop the move function onPress of the mouse…

---

<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:** [July 18, 2003, 10:59am UTC](https://forum.kirupa.com/t/move-drag-problem/25986/4 "2003-07-18T10:59:12Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=7457](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=7457)

---

<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:** [July 18, 2003, 11:06am UTC](https://forum.kirupa.com/t/move-drag-problem/25986/5 "2003-07-18T11:06:08Z")

</div>

maybe  
delete someMC.onPress;  
?

---

<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:** [July 18, 2003, 11:13am UTC](https://forum.kirupa.com/t/move-drag-problem/25986/6 "2003-07-18T11:13:52Z")

</div>

but i want to place it somewhere else…when its deleted its deleted…😉

---

<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:** [July 18, 2003, 11:37am UTC](https://forum.kirupa.com/t/move-drag-problem/25986/7 "2003-07-18T11:37:00Z")

</div>

i think u should edit “move” prototype like:  
when onPress true, this.x= \_root.\_xmouse; and this.y= \_root.\_ymouse;

just an idea :hair:
