# Button scale with AS

**URL:** <https://forum.kirupa.com/t/button-scale-with-as/259870>\
**Category:** flash\
**Created:** [May 9, 2008, 3:08pm UTC](https://forum.kirupa.com/t/button-scale-with-as/259870 "2008-05-09T15:08:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoseB](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@JoseB](https://forum.kirupa.com/u/JoseB)\
**Post date:** [May 9, 2008, 3:08pm UTC](https://forum.kirupa.com/t/button-scale-with-as/259870/1 "2008-05-09T15:08:13Z")

</div>

Hi, I have a button, I want the button to get 50% bigger when rollOver

I have this code in the button, can some one help me? this simple code just turns the btn from white to red in the rollOver

on(rollOver){  
myColor = new Color(button01);  
myColor.setRGB(0xFF0000);  
}  
on(rollOut){  
myColor = new Color(button01);  
myColor.setRGB(0xFFFFFF);  
}  
on(press){  
myColor = new Color(button01);  
myColor.setRGB(0xFFffff);  
}  
on(release){  
myColor = new Color(button01);  
myColor.setRGB(0xFF0000);  
}
