I’ve got four buttons on the stage and im using this script to animate them when the mouse rolls over:
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.