# AS Scaling Problem- Please help

**URL:** <https://forum.kirupa.com/t/as-scaling-problem-please-help/126597>\
**Category:** Uncategorized\
**Created:** [October 25, 2004, 7:01pm UTC](https://forum.kirupa.com/t/as-scaling-problem-please-help/126597 "2004-10-25T19:01:23Z")\
**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:01pm UTC](https://forum.kirupa.com/t/as-scaling-problem-please-help/126597/1 "2004-10-25T19:01:23Z")

</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?

```auto
on (release) {
	if (_root.kids1._yscale<300) {
		_root.kids1._yscale+= +5;
	}
}

```

any help would be great, thanks in advance!
