ultimo appello.
tra un'ora devo consegnare il mio lavoro e sono bloccato in un punto.
vi spiego:
ho un clip sullo stage. dentro questo ci sono altri 6 clip ognuno su 1 diverso livello e un bottone.
questo bottone, al rilascio, attiva un movimento elastico dei 6 clip.
il movimento elastico l'ho ottenuto assegnando ad ogni singolo clip il seguente script:
onClipEvent (load) {
this.acc = 3;
this.ine = 1.2;
this.endw = 100;
this.endh = 100;
this.endx = _x+90;
this.endy = _y+0;
}
onClipEvent (enterFrame) {
if (_root.vai) {
this.dw = (this.dw+(this.endw-this._width)/this.acc)/this.ine;
this.dh = (this.dh+(this.endh-this._height)/this.acc)/this.ine;
this.dx = (this.dx+(this.endx-this._x)/this.acc)/this.ine;
this.dy = (this.dy+(this.endy-this._y)/this.acc)/this.ine;
this._width += width;
this._height += height;
this._x += this.dx;
this._y += this.dy;
}
}
al pulsante invece questo script:
on (release) {
_root.vai = true;
}