# Limiting x\_scale/y\_scale of movieclip

**URL:** <https://forum.kirupa.com/t/limiting-x-scale-y-scale-of-movieclip/211509>\
**Category:** flash\
**Created:** [January 2, 2007, 3:03pm UTC](https://forum.kirupa.com/t/limiting-x-scale-y-scale-of-movieclip/211509 "2007-01-02T15:03:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vcugreg](https://avatars.discourse-cdn.com/v4/letter/v/ce73a5/32.png) [@vcugreg](https://forum.kirupa.com/u/vcugreg)\
**Post date:** [January 2, 2007, 3:03pm UTC](https://forum.kirupa.com/t/limiting-x-scale-y-scale-of-movieclip/211509/1 "2007-01-02T15:03:52Z")

</div>

Hello all. I have a question that I would really love answered. I have put script on a button which will scale a movieclip in intervals when pressed by the viewer. My question is if there is a way to tell it to stop at a certain point? Here is the code on the zoom button.

```auto

on (press) {
  bigscan1._xscale += 25;
  bigscan1._yscale += 25;
}

```

This script works perfectly but i don’t want the viewer to be able to infinately scale the movie clip. Is there a way to code it so that once the x\_scale gets to a certain point it won’t scale it anymore?

Thank you for all your help in advance.

Sincerely,  
Greg
