# Trying to do the rubber effect on a button

**URL:** <https://forum.kirupa.com/t/trying-to-do-the-rubber-effect-on-a-button/31752>\
**Category:** Uncategorized\
**Created:** [September 26, 2003, 3:50pm UTC](https://forum.kirupa.com/t/trying-to-do-the-rubber-effect-on-a-button/31752 "2003-09-26T15:50:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanak](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@seanak](https://forum.kirupa.com/u/seanak)\
**Post date:** [September 26, 2003, 3:50pm UTC](https://forum.kirupa.com/t/trying-to-do-the-rubber-effect-on-a-button/31752/1 "2003-09-26T15:50:05Z")

</div>

I have this code on a instance of a button named myButton, but when I rollover it just expands without the effect. Also, why doesn’t using “this” instead of the instance name work the same?

on (rollOver) {  
mybutton.\_width=100;  
myButton.\_height=100;  
mybutton.\_width=400;  
myButton.\_height=400;  
mybutton.\_width=200;  
myButton.\_height=200;  
}

Thanks.
