View Single Post

  #3 (permalink)  
Old 21-08-08, 01:17
Aaron24 Aaron24 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 6
Rep Power: 0
Aaron24 is on a distinguished road
Re: declaring variables

Quote:
Originally Posted by Onsitus View Post
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.
thanks for that
Reply With Quote