Stai scalando tramite _xscale e _yscale, ma come valori iniziali e finali hai usato dei valori riferiti alla larghezza e all'altezza del movieclip. O uno, o l'altro. Ad esempio:
codice:
onClipEvent (load) {
finex = _x;
finey = _y;
finexs = _width;
fineys = _height;
tempo = 5;
}
onClipEvent (enterFrame) {
////spostamento//////////
iniziox = _x;
inizioy = _y;
////ridimensionamento////
inizioxs = _width;
inizioys = _height;
////calcolo spostamento////
spaziox = (finex - iniziox) / tempo;
_x += spaziox;
spazioy = (finey - inizioy) / tempo;
_y += spazioy;
////calcolo ridimensionamento////
spazioys = (fineys - inizioys) / tempo;
_height += spazioys;
spazioxs = (finexs - inizioxs) / tempo;
_width += spazioxs;
}
on (rollOver) {
this.finex = 54;
this.finey = 36;
this.finexs = 140;
this.fineys = 170;
}
on (rollOut) {
this.finex = 54;
this.finey = 36;
this.finexs = 110;
this.fineys = 130;
}
oppure:
codice:
onClipEvent (load) {
finex = _x;
finey = _y;
finexs = _xscale;
fineys = _yscale;
tempo = 5;
}
onClipEvent (enterFrame) {
////spostamento//////////
iniziox = _x;
inizioy = _y;
////ridimensionamento////
inizioxs = _xscale;
inizioys = _yscale;
////calcolo spostamento////
spaziox = (finex - iniziox) / tempo;
_x += spaziox;
spazioy = (finey - inizioy) / tempo;
_y += spazioy;
////calcolo ridimensionamento////
spazioys = (fineys - inizioys) / tempo;
_yscale += spazioys;
spazioxs = (finexs - inizioxs) / tempo;
_xscale += spazioxs;
}
on (rollOver) {
this.finex = 54;
this.finey = 36;
this.finexs = 150;
this.fineys = 150;
}
on (rollOut) {
this.finex = 54;
this.finey = 36;
this.finexs = 100;
this.fineys = 100;
}