ciao ho questo problema... devo centrare una immagine caricata in un mc .... prendendo le varie var da un file di testo ecco il codice:
obj3.onLoadInit = function(target) {
this._parent.varx = target._x
target._x = -((_root.Stage.width/2) - (this._width/2))
target._y = (_root.Stage.height/2) - (target._height/2)
}
in teoria dovrei prendere la larghezza dello stage e togliere la metà della larghezza del mc e mi centra le x solo che non me lo fa![]()

-
Rispondi quotando
