fai così:
codice:
MovieClip.prototype.premutoflash = function(clip) {
this.duplicateMovieClip("mc", 100);
var w = Stage.width/2;
var h = Stage.height/2;
var x = Math.round(w-(this.larg/2));
var y = Math.round(h-(this.alt/2));
clip.mc._x = x;
clip.mc._y = y;
clip.mc._xscale = 100;
clip.mc._yscale = 100;
};
e questo al pulsante:
codice:
b1.onRelease = function(){
this.larg = 100;
this.alt = 100;
this.premutoflash(this._parent);
}
this._parent glielo passo per puro piacere. Puoi anche semplicemente scrivere nella prototype box.mc (al posto di clip.mc) e ovviamente non indicare il parametro clip nella function