Uso questo script per ridimensionare un mc tramite la pressione di un pulsante e posizionarlo in giro per lo stage
Perche alla pressione del pulsante l'mc è come se partisse sempre da x=0,y=0 ? (per capirci in alto a sx)onClipEvent(load){
acc = 0.01;
}
onClipEvent(enterFrame){
stepx = (this._x + (xx - this._x)/acc)/xx;
stepy = (this._y + (yy - this._y)/acc)/yy;
stepw = (this._width + (ww - this._width)/acc)/ww;
steph = (this._height + (hh - this._height)/acc)/hh;
this._x += stepx;
this._y += stepy;
this._width += stepw;
this._height += steph;
}