Move/drag problem

hello flashgurus!

i have a problem with AS.

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

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:)

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

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…

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

maybe
delete someMC.onPress;
?

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

i think u should edit ā€œmoveā€ prototype like:
when onPress true, this.x= _root._xmouse; and this.y= _root._ymouse;

just an idea :hair: