raghfrost
02-16-2002, 01:24 AM
i cant seem to snap or even drag my object to my target
my obj is to drag this objet and when it is near the target it should snap on it :)
on (press) {
btn.startDrag();
}
on (release) {
if (eval(_droptarget) != target) {
btn._x = 200;
btn._y = 100;
} else {
btn_x = rabbi._x;
btn_y = rabbi._y;
target = "_root.pasture";
}
trace ("btn_y = "+100);
trace ("btn_x = "+200);
stopDrag ();
}
this is the scrip i got from the flash refrence :)
my obj is to drag this objet and when it is near the target it should snap on it :)
on (press) {
btn.startDrag();
}
on (release) {
if (eval(_droptarget) != target) {
btn._x = 200;
btn._y = 100;
} else {
btn_x = rabbi._x;
btn_y = rabbi._y;
target = "_root.pasture";
}
trace ("btn_y = "+100);
trace ("btn_x = "+200);
stopDrag ();
}
this is the scrip i got from the flash refrence :)