Non capisco il perchè questo codice sulla time line principale mi rallenta da matti l'animazione e mi manda alle stelle l'utilizzo della CPU!
codice:
trace(finestra._width)
finestra._width += (finestra.endw - finestra._width) / 5;
finestra._height +=(finestra.endh - finestra._height)/ 5;
finestra._x = 275 - (finestra._width/2)
finestra._y = 200 - (finestra._height/2)
Se invece lo associo al mc finestra e lo trasformo cosi:
codice:
onClipEvent(enterFrame){
this._width += (this.endw - this._width) / 5;
this._height +=(this.endh - this._height)/ 5;
this._x = 275 - (this._width/2)
this._y = 200 - (this._height/2)
trace(this._width)
}
l'animazione risulta fluida e dinamica!!!
:master: