Actionscript 2.0 to 3.0, small bit of code (sorry!)

Hi all, I recently found out how to scroll using 2.0, but want to have it in 3.0. I’m utterly confused as to how to convert this part (imagesMC is the instance name of the thing I want to scroll/move:

onClipEvent (enterFrame) {
ximagesMC = getProperty(_root.imagesMC, _x);
moveimagesMC = _root.xTargetimagesMC - ximagesMC;
setProperty(_root.imagesMC, _x, ximagesMC + (moveimagesMC/160));
}

I think I’ve done the other things okay like event listeners, it’s just this 2.0 code above I don’t know how to change to 3.0.

Thanks in advance!