# Sizing the movieclip

**URL:** https://forum.kirupa.com/t/sizing-the-movieclip/96014
**Category:** Uncategorized
**Created:** [December 3, 2003, 7:35pm UTC](https://forum.kirupa.com/t/sizing-the-movieclip/96014 "2003-12-03T19:35:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![luthan](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@luthan](https://forum.kirupa.com/u/luthan)
#### Post date: [December 3, 2003, 7:35pm UTC](https://forum.kirupa.com/t/sizing-the-movieclip/96014/1 "2003-12-03T19:35:30Z")

</div>

I am very new to actionscript so if this is a dumb question sorry.

I am messing around to learn more about actionscript and I am trying to have a square movieclip resize itself so both sides are equal to 50  
here is my code on the movieclip  
it does the resize and all but it keeps on going. I am not sure how to stop it.

[AS]  
this.onLoad = function() {  
this.\_height = 6;  
this.\_width = 6;

}

this.onEnterFrame = function() {  
this.\_height+=1;  
this.\_width+=1;  
if(this.\_currentframe == 50)  
{  
stop();

```
             }

```

}  
[/AS]

any help would be great  
thank you
