AS3 Parallax Gallery

Can anyone translate this AS2 code to AS3? I tried myself but I am having a problem with the setProperty method. Code is pasted and here’s the link to the source files. Thanks, any help greatly appreciated.

http://www.webdesignerwall.com/tutorials/parallax-gallery/all-comments/#comments

stageWidth = Stage.width;
speed1 = 20;
speed2 = 19;
mc1Width = front_mc._width;
mc2Width = back_mc._width;
mc1X = front_mc._x;
mc2X = back_mc._x;

//lock_scroll = false;
_root.onEnterFrame = function () {
//if (!lock_scroll)
scroll_mc();
}

function scroll_mc() {
var xdist = _xmouse-(stageWidth/2);
mc1X += -xdist/speed1;
mc2X += -xdist/speed2;
if (mc1X>=0) {
mc1X = 0;
}
if (mc1X<=stageWidth-mc1Width) {
mc1X = stageWidth-mc1Width;
}
if (mc2X>=0) {
mc2X = 0;
}
if (mc2X<=stageWidth-mc2Width) {
mc2X = stageWidth-mc2Width;
}
setProperty(“front_mc”, _x, mc1X);
setProperty(“back_mc”, _x, mc2X);
}