# PLEASE HELP with scaling in AS

**URL:** <https://forum.kirupa.com/t/please-help-with-scaling-in-as/126599>\
**Category:** Uncategorized\
**Created:** [October 25, 2004, 7:37pm UTC](https://forum.kirupa.com/t/please-help-with-scaling-in-as/126599 "2004-10-25T19:37:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thewaldron](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@thewaldron](https://forum.kirupa.com/u/thewaldron)\
**Post date:** [October 25, 2004, 7:37pm UTC](https://forum.kirupa.com/t/please-help-with-scaling-in-as/126599/1 "2004-10-25T19:37:15Z")

</div>

hi, i’m using this code to for a button to make a MC “kids1” gradually scale to 300%, in 5% increments, but it only scales it 5% then stop, does anyone know how to make this function repeat until \_yscale=300?

```
  	Code:
[left]on (release) {
if (_root.kids1._yscale&lt;300) {
	_root.kids1._yscale+= +5;
}

```

}[/left]

any help would be great, thanks in advance!
