При нажатии на область прокрутки сам регулятор неспеша переходил по координатам mouseX

Код AS3:
var bounds:Rectangle = new Rectangle(110, 350, 0, 492.5);
scrollHandle.addEventListener(MouseEvent.MOUSE_DOWN, drag);
scrollHandle.addEventListener(MouseEvent.MOUSE_OUT, stopdrag);
bar.addEventListener(MouseEvent.CLICK, tween);
function tween (e:MouseEvent):void{
var MousePos:Number = mouseY;
if (MousePos<(bar.height-71.7)) {MousePos= bar.height-71.7}
var ms:Tween = new Tween(scrollHandle, "y", None.easeInOut,scrollHandle, MousePos ,1,true);
}
scrollHandle.addEventListener(Event.ENTER_FRAME, moveBox);
function drag(e:MouseEvent):void {
scrollHandle.startDrag(false,bounds);
scrollHandle.gotoAndStop(2);
scrollHandle.removeEventListener(MouseEvent.MOUSE_DOWN, drag);
scrollHandle.addEventListener(MouseEvent.MOUSE_UP, stopdrag);
}
function stopdrag(e:MouseEvent):void {
scrollHandle.stopDrag();
scrollHandle.gotoAndStop(1);
scrollHandle.addEventListener(MouseEvent.MOUSE_DOWN, drag);
scrollHandle.removeEventListener(MouseEvent.MOUSE_UP, stopdrag);
}
function moveBox(e:Event):void {
IvPR.IPRT1.y = 38-(scrollHandle.y - 380)/2;
}
Добавлено через 9 минут
С tween всё ясно. Какой оператор возвращает число, равное положению объекта по оси y или x