potresti fare una cosa del genere:
codice:
MovieClip.prototype.ridimens = function(larg,alt,testo){
this.onEnterFrame = function() {
this._width = this._width+(larg-this._width)/3;
(Math.abs(this._width-larg)<2) ? this._width = larg : '';
this._height = this._height+(alt-this._height)/3;
(Math.abs(this._height-larg)<2) ? this._height = larg : '';
if(this._width == larg && this._height == alt){
delete this.onEnterFrame;
this.loadVariables(testo);
}
};
}
ed ai pulsanti associ:
codice:
on(release){
mc.ridimens(200,300,"testo.txt");
}
ossia, nomeistanzadeltuomovieClip.ridimens(altezza,larghe zza,nomefile)