Oltre a richiamare un oggetto dalla libreria crea un movieclip vuoto.
codice:
//buttone
my_btn.onRelease = function () {
this._parent.playFn();
};
//crea movieclip vuoto
this.createEmptyMovieClip(“contenitore”, this.getNextHighestDepth());
//richiamare un oggetto dalla libreria
this.contenitore.attachMovie(“palla”, “palla_nuova”, this.contenitore.getNextHighestDepth());
//centrarlo
var posX:Number = (Stage.width / 2)-(this.contenitore.palla_nuova._width/2);
var posY:Number = (Stage.height / 2)-(this.contenitore.palla_nuova._height/2);
this.contenitore._x = posX;
this.contenitore._y = posY;
this.contenitore.palla_nuova._x = this.contenitore.palla_nuova._y = 0;
this.contenitore.palla_nuova.stop();
ottobre 23, 2007 alle 10:36 am
Per me parlate arabo…io so solo fare quadratini e cerchietti e spostarli nello stage…