Quote:
Originally Posted by Aaron24
hi just wondering if someone can tell me how I can declare a start variable on a draggable movieclip so that it snaps back to its starting position in once the stopDrag has been called
|
Hi, declare your var to start with, recall them when the drag stops
Esempio to start:
var xStart:Number = clip._x; //could also be a number
var yStart:Number = clip._y;
when the drag stops:
clip._x=xStart;
clip._y=yStart;
Then to apply to your code.
