PDA

View Full Version : move/drag problem



fusi
July 18th, 2003, 04:07 AM
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:)

mediaholic
July 18th, 2003, 06:23 AM
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

fusi
July 18th, 2003, 06:54 AM
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...

pom
July 18th, 2003, 06:59 AM
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=7457

mediaholic
July 18th, 2003, 07:06 AM
maybe
delete someMC.onPress;
?

fusi
July 18th, 2003, 07:13 AM
but i want to place it somewhere else...when its deleted its deleted...;)

e.s.x.s
July 18th, 2003, 07:37 AM
i think u should edit "move" prototype like:
when onPress true, this.x= _root._xmouse; and this.y= _root._ymouse;

just an idea :hair: