i need to be able to drag an item… either left or right… and have it ease in increments of 25 pixels left or right. i have a theory… do i store the old x coordinates and the new coordinates, add em, subtract 25 from it and add 1 to a new variable(say x_times) each time till x<25 and have a function ease the object x_times… does this make sense? if so… any help on how to code that… an dhow to make a function to ease an object by 25px?
mmmkay… i got em to move… here’s the script for that
on (press) {
stX = _root._xmouse;
}
on (dragOut) {
endX = _root._xmouse;
endX -= stX;
if (endX<0) {
this.gotoAndPlay("left");
} else {
this.gotoAndPlay("right");
}
}
the [color=Blue][color=Navy]this.gotoAndPlay[/color]color=Black; plays an animation in the block that makes it moves left, and [color=Navy]this._x[/color] -= 25;
am i being too compicated? because i still have to figure out how to make em dissapear and fall. and stop when they hit a barrier…
“This was also done during an all nighter.” 
[/color][/color]