Mouse Movment

Hi all,

I am using this code for vertical scrolling gallery. How to add the X and Y Positions For Mouse up and Down for the Below code.

if (_global.chk == undefined) {
_global.chk = 1;
}

mask_y = getProperty("_root.main.verti.mask", _y);
mask_h = getProperty("_root.main.verti.mask", _height);
roller_y = getProperty("_root.main.verti.roller", _y);
roller_h = getProperty("_root.main.verti.roller", _height);

if (_global.chk == 1) {
if ((roller_y+roller_h)>(mask_y+mask_h)) {
setProperty("_root.main.verti.roller", _y, getProperty("_root.main.verti.roller", _y)-3);
} else {
_global.chk = 2;
}

} else if(_global.chk == 2) {
if (roller_y<=mask_h) {
setProperty("_root.main.verti.roller", _y, getProperty("_root.main.verti.roller", _y)+3);
} else {
_global.chk = 1;
}
}