Hi,
I apologize in advance if any of this sounds stupid. i am wondering if there is an intelligent way of creating a ‘zoom in’ effect which will can be handled and created within action script, rather than making ‘tween’ effect for each image on the time line.
please help,
thankz
system
April 17, 2003, 3:54pm
2
I have just found out a way of doing it, it is done by putting the following code on a movieclip:
onClipEvent(load) {
_width=200;
_height=200;
}
Experience with the above code. On the last keyframe put:
stop();
unless you want it to loop.
system
April 18, 2003, 3:16am
3
try this…
make a 40x40 rectangle on convert it to movieclip, put this on the rect MC…
//i use it on 40X40 rectangle MC
onClipEvent (load) {
zoom = 100;
minScale = this._height;
maxScale = this._height+zoom;
speed = 10;
}
on (press) {
this.onEnterFrame = function() {
_width += speed;
_height += speed;
if (_width && _height>=maxScale) {
_width = _height=maxScale;
delete (this.onEnterFrame);
}
};
}
on (release, releaseOutside) {
this._width = this._height=minScale;
delete (this.onEnterFrame);
}
hope that helps…