Select Page

Following up on an earlier post, here is the AS2.0 version of the dragToPosition X & Y coordinate tracer.

class com.sitedaniel.utils.Design
{
	public static function dragToPosition(mc:MovieClip):Void
	{
		mc.onPress = function():Void
		{
			startDrag(this, false);
		}
		mc.onRelease = function():Void
		{
			this.stopDrag();
			trace(this._x + ', ' + this._y);
		}
	}
}