# Button disappears on tween

**URL:** <https://forum.kirupa.com/t/button-disappears-on-tween/215624>\
**Category:** Uncategorized\
**Created:** [February 8, 2007, 7:55pm UTC](https://forum.kirupa.com/t/button-disappears-on-tween/215624 "2007-02-08T19:55:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kredd](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kredd](https://forum.kirupa.com/u/kredd)\
**Post date:** [February 8, 2007, 7:55pm UTC](https://forum.kirupa.com/t/button-disappears-on-tween/215624/1 "2007-02-08T19:55:43Z")

</div>

i’ve got a function that tweens the \_x and \_yscale of whatever button is rolled over and a fuction to tween them back, basically grow and shrink the button. the problem is that on rollover the button completely disappears and when i rollout it reappears at the correct “grown” size and then shrinks correctly.

```auto
 
for(var b=1;b<=47;b++){ // works on ALL buttons
  _root.map["btn"+b].onRollOver = function()
  {
   var bt:Tween = new Tween(this,"_yscale", Strong.easeOut,this._yscale,this._yscale+1,1.5,true);
   var btn:Tween = new Tween(this,"_xscale", Strong.easeOut,this._xscale,this._xscale+1,1.5,true);
   //trace(this);
   var my_sound:Sound = new Sound();
   my_sound.attachSound("bldg_RO");
   my_sound.start();
  } // end rollover
}// end for loop

```

any ideas as to why it would disappear?

thanks!
