[FMX] PLZ Help with Mouse Controlled Image

Hi,

I’m a graphic designer trying to design my portfolio and I would like to create a moving background based on the mouse position, like these examples:

http://www.goodbysilverstein.com/aw...anners/hp_zoom/
http://www.marinapenno.com/v1/en/index.html

I found the following on actionscript.org but how do I get it to start in the center and be constrained to the edges of the picture?

onClipEvent(load) {
var speed = 10;
var right = 266;
//add the left variable if you need it
//and delete any of the variables that you do not need.
var bot = 143;
}
onClipEvent (enterFrame) {
if (_root._xmouse >= right && _x >= right) {
_x += (right - _x)/4;
}
else if (_root._ymouse >= bot && _y >= bot) {
_y += (bot - _y)/4;
}else{
_y = (_y+_ymouse/speed);
_x = (_x+_xmouse/speed);
}
}

Thanks!
Tristan