# Some button as

**URL:** <https://forum.kirupa.com/t/some-button-as/212270>\
**Category:** Uncategorized\
**Created:** [January 9, 2007, 9:32pm UTC](https://forum.kirupa.com/t/some-button-as/212270 "2007-01-09T21:32:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dColumbus](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@dColumbus](https://forum.kirupa.com/u/dColumbus)\
**Post date:** [January 9, 2007, 9:32pm UTC](https://forum.kirupa.com/t/some-button-as/212270/1 "2007-01-09T21:32:11Z")

</div>

I’ve got four buttons on the stage and im using this script to animate them when the mouse rolls over:

```auto

onClipEvent(load){
 speed = 4
}
onClipEvent(enterFrame){
 if(this.hitTest(_root._xmouse,_root._ymouse)){
  this.ts = 200
 }else{
  this.ts = 100
 }
 this._xscale += (this.ts - this._xscale)/speed
 this._yscale += (this.ts - this._yscale)/speed
}

```

how can I get the other buttons to keep their distance when the activated one grows in size?

Thanks in advance.
