'zoom in' through a code?


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,

I have just found out a way of doing it, it is done by putting the following code on a movieclip:

onClipEvent(load) {

Experience with the above code. On the last keyframe put:


unless you want it to loop.

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…:slight_smile: