Ho fatto un test in locale per vedere cosa succedeva e mi funziona correttamente.
Il codice del test, che fa tutto da solo:
Codice PHP:
Stage.align = "TL";
Stage.scaleMode = "noScale";
var contenitore = _root.createEmptyMovieClip ("contenitore", 1);
var loader:Object = new MovieClipLoader ();
loader.onLoadProgress = function (target, loaded, total) {
trace ("Load of "+target+": "+loaded+" of "+total);
};
loader.onLoadInit = function (target:MovieClip) {
target._x = (Stage.width-target._width) * 0.5;
target._y = (Stage.height-target._height) * 0.5;
};
function onResize () {
loader.onLoadInit (contenitore);
}
Stage.addListener (this);
loader.loadClip ("test.jpg", contenitore);
Non capisco perchè a te crei quel problema :master: