# Resizing a square simple no?

**URL:** https://forum.kirupa.com/t/resizing-a-square-simple-no/260905
**Category:** flash
**Created:** [May 20, 2008, 11:04pm UTC](https://forum.kirupa.com/t/resizing-a-square-simple-no/260905 "2008-05-20T23:04:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MHeijens](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@MHeijens](https://forum.kirupa.com/u/MHeijens)
#### Post date: [May 20, 2008, 11:04pm UTC](https://forum.kirupa.com/t/resizing-a-square-simple-no/260905/1 "2008-05-20T23:04:36Z")

</div>

Hello world!!!

I want to have a button change the dimensions of a square in my flash document.

It sounds simple enough to me but after a day of searching i am very frustrated, i don’t know nearly enough about flash to know where i should start looking to find the answer myself. And all the examples i find in forums are over complicated or have little or no explanations.

Someone point me in the right direction please.

desperate? i think so.

---

<div class="post-metadata">

### Author: ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)
#### Post date: [May 20, 2008, 11:18pm UTC](https://forum.kirupa.com/t/resizing-a-square-simple-no/260905/2 "2008-05-20T23:18:33Z")

</div>

Put your square into a movieclip - myMC:

myBtn.onpress = function(){  
myMC.\_width = // enter new width value in pixels here  
myMC.\_height = // enter new height value in pixels here  
}

---

<div class="post-metadata">

### Author: ![Michael\_Chen](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@Michael\_Chen](https://forum.kirupa.com/u/Michael_Chen)
#### Post date: [May 21, 2008, 4:02am UTC](https://forum.kirupa.com/t/resizing-a-square-simple-no/260905/3 "2008-05-21T04:02:23Z")

</div>

> 

myBtn.onpress = function(){  
myMC.\_width = // enter new width value in pixels here  
myMC.\_height = // enter new height value in pixels here  
}

Note: AS2 is case sensitive…

myBtn\*\*.onPress \*\*= function(){  
myMC.\_width = // enter new width value in pixels here  
myMC.\_height = // enter new height value in pixels here  
}
