# Zoom in and out

**URL:** <https://forum.kirupa.com/t/zoom-in-and-out/240998>\
**Category:** Uncategorized\
**Created:** [October 9, 2007, 10:25am UTC](https://forum.kirupa.com/t/zoom-in-and-out/240998 "2007-10-09T10:25:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mymelody](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@mymelody](https://forum.kirupa.com/u/mymelody)\
**Post date:** [October 9, 2007, 10:25am UTC](https://forum.kirupa.com/t/zoom-in-and-out/240998/1 "2007-10-09T10:25:42Z")

</div>

I would like to zoom in a movieclip and after that zoom out. This I would like to happen randomized.

Right now it just zoom when I enter the frame.

```auto

this._xscale = this._xscale+1;
this._yscale = this._yscale+1;
if ((this._xscale >= 150) && this._yscale >= 150) {
this._xscale = 150;
this._yscale = 150;

```
