Just getting back into flash development here and slowly learning AS3.
I had a great effect on an old website of mine that I used often of a scrolling background that moved with your mouse.
This is the coding I came up with years ago to get it to work - the background movie was called 'BackGroundBar' -
Anyway, any idea how I would even remotely start converting this to AS3?

Any help would be appreciated, thanks.

this.onMouseMove = function() {
function constrainedMove(target:MovieClip, speed:Number, dir:Number) {
var mousePercent:Number = _xmouse/Stage.width;
var mSpeed:Number;
if (dir ==0) {
mSpeed = 1-mousePercent;
} else {
mSpeed = mousePercent;
target.destX = Math.round(-((target._width-Stage.width)*mSpeed));
target.onEnterFrame = function() {
if (target._x == target.destX) {
delete target.onEnterFrame;
} else {
target._x += Math.ceil((target.destX-target._x)*(speed/100));