Hi,
It appears this code has gotten around some... thanks to ericlin
http://www.flashkit.com/movies/Effec...6578/index.php
The lines of code you would need to affect to change the scale of the zoom is this....
_root.zoom_this._xscale += dir*i*100/8;
_root.zoom_this._yscale += dir*i*100/8;
The only thing you need to change is the scale divisor at the end of those lines.....
_root.zoom_this._xscale += dir*i*100/50;
_root.zoom_this._yscale += dir*i*100/50;
Have to play around with it some to get what you want. You can also change the code from a clip event to frame code so it is easier to manipulate like this......
frame 1..
code:
_root.onMouseDown = function() {
if (k>0) {
return;
}
zoom = true;
dir == 1 ? (dir=-1) : (dir=1);
if (dir == 1) {
pt = {x:_root._xmouse, y:_root._ymouse};
}
}
_root.onEnterFrame = function() {
if (!zoom) {
return;
}
_root._xscale += dir*k*50/8;
_root._yscale += dir*k*50/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;
}
}
This could also be applied to individual MC's.......
code:
_root.mcName.onMouseDown = function() {
if (k>0) {
return;
}
zoom = true;
dir == 1 ? (dir=-1) : (dir=1);
if (dir == 1) {
pt = {x:_root._xmouse, y:_root._ymouse};
}
}
_root.mcName.onEnterFrame = function() {
if (!zoom) {
return;
}
_root._xscale += dir*k*50/8;
_root._yscale += dir*k*50/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;
}
}
HTH
NTD