Hi - I’m trying to figure out a way to control the amount of zoom in this great effect. I’ve tried everything I can think of and so far, it just zooms tool close to my image. Any help is greatly appreciated!
Here’s the 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 += dirk50/8;
_root._yscale += dirk50/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 == 8) {
zoom = false;
k = 0;
}
}