Para el ampliado uso sobre el clip que contiene el boton:
onClipEvent (load) {
xpos = 100;
ypos = 100;
this._xscale = xpos;
this._yscale = ypos;
speed = 2;
}
onClipEvent (enterFrame) {
this._xscale += (xpos-this._xscale)/speed;
this._yscale += (ypos-this._yscale)/speed;
Y sobre el boton invisible:
on (press) {
this.xpos = 300;
this.ypos = 300;
this._rotation = 0;
this.swapDepths(20);
}
on (rollOut) {
this.xpos = 100;
this.ypos = 100;
this._rotation = 5;
}
