# Zooming?

**URL:** <https://forum.kirupa.com/t/zooming/9086>\
**Category:** flash\
**Created:** [December 4, 2002, 4:37pm UTC](https://forum.kirupa.com/t/zooming/9086 "2002-12-04T16:37:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pirk685](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@Pirk685](https://forum.kirupa.com/u/Pirk685)\
**Post date:** [December 4, 2002, 4:37pm UTC](https://forum.kirupa.com/t/zooming/9086/1 "2002-12-04T16:37:36Z")

</div>

I am hoping y’all can tell me how to do a zoom effect without having to enlarge all the stuff on the stage. I have several animations occurring right where I want to begin a steady zoom-in but it would be extremely tedious to enlarge all the animated graphics in the middle of their tweens just to accomplish this effect. Please help

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 4, 2002, 5:10pm UTC](https://forum.kirupa.com/t/zooming/9086/2 "2002-12-04T17:10:51Z")

</div>

on your movie clips you can do this…

```auto
onClipEvent (enterFrame) {
   this._xscale+=5;
   this._yscale+=5;
}

```

Then you can add an if statement if you want it to stop scaling at a certain point otherwise it will keep scaling…lol. Something like this…

```auto
onClipEvent (enterFrame) {
   this._xscale+=5;
   this._yscale+=5;
if (this._xscale >= 500){
       this._xscale = 500);
  }
if (this._yscale >= 500){
       this._yscale = 500);
  }
}

```

\_yscale and \_xscale works in %s instead of pixel numbers, so +=5 will be increasing by 5% and 500 would be 500% (or 5 times the original size of the movie).
