PDA

View Full Version : zoom in during movie?


ian_tycoon
06-12-2001, 09:44 PM
how do i make it so it zooms in on sumwhere then zooms out automatically?

Marx
06-13-2001, 11:22 AM
Hi..
In the following example we use two buttons to control the 'zooming' in and out:

1) Place this code on the MC you want to 'zoom' in and out:

onClipEvent (enterFrame) {
this._xscale+=_root.rateX;
this._yscale+=_root.rateY;
}

2) Zoom out button:

on (rollOver) {
rateX = -5;
rateY = -5;
}
on (rollOut) {
rateX = 0;
rateY = 0;
}

3) Zoom in:

on (rollOver) {
rateX = 5;
rateY = 5;
}
on (rollOut) {
rateX = 0;
rateY = 0;
}

Hope this helps.