Zoom script


onClipEvent (mouseDown) {
if (k>0) {
return;
}
zoom = true;
dir == 1 ? (dir=-1) : (dir=1);
if (dir == 1) {
pt = {x:_root._xmouse, y:_root._ymouse};
}
}
onClipEvent (enterFrame) {
if (!zoom) {
return;
}
_root._xscale += dir*k*10/8;
_root._yscale += dir*k*10/8;
var pt2 = {x:pt.x, y:pt.y};
_root.localToGlobal(pt2);
_root._x -= (pt2.x-pt.x);
_root._y -= (pt2.y-pt.y);
k++;
if (k == 25) {//change here...
zoom = false;
k = 0;
}
}

i tried to use this script in flash 8 but it doesnt seem to work anymore due to alot of errors and i think its cuz of the script is out of date

so my question is could someone fix it so it works on flash 8? cuz im not very handy with actionscript all ic an do is copy/paste and mess up alot

thnx in advance

Robb