PDA

View Full Version : i nedd some help with drag in line..



rlbaris
December 9th, 2004, 08:54 AM
i want a simbol to be dragd by the user exaclly in line (straight or twisting), like following the unshowed line.. (and not moving freely)
can i do that?
how?

thank!

rlbaris
December 10th, 2004, 02:45 AM
:*( :( :puzzled:

who
December 10th, 2004, 05:07 AM
if I understood your question....
1. Set up a button with instance name dragBtn
2.Put this actionscript on the button
on(press){
startDrag("_root.dragBtn", true, 35,150,415,150);
}

the syntax is startDrag(target,lockcenter,l,t,r,b)

Check this out.... http://www.virtualclues.com/tutorials/print.php?articleID=72

Ronak Bhagdev
December 10th, 2004, 09:30 AM
simple use
startDrag(instance name, true, l, t, r, b);
if you want to dag your movie in horizentel use this variable:
l=90
t=0
r=10
b=0
if you want to dag your movie in horizentel use this variable:
l=0
t=90
r=0
b=10


Ronak

rlbaris
December 12th, 2004, 03:35 AM
very much!