ciao ho questo problema praticamente per caricare il mio sfondo che è una img di 1024*1280 su un fullscreen uso questo codice:
Codice PHP:
larghezza = Stage.width
Stage.align = "TL";
Stage.scaleMode = "noScale";
Stage.showMenu = false;
this.onEnterFrame = function()
{
this.preload._x = Math.floor(Stage.width / 2 - this.preload._width / 2);
this.preload._y = Math.floor(Stage.height / 2 - this.preload._height / 2);
byl = this.getBytesLoaded();
byt = this.getBytesTotal();
if( byt > 10 )
{
perc = Math.round(byl * 100 / byt);
this.preload.percentuale.text = "load background" + " " + perc + "%";
if(byl >= byt)
{
this.onEnterFrame = undefined;
this.nextFrame();
}
}
}
stop();
e fin qui tutto ok il problema sta nel fatto che se uno ridimensiona il browser anche di 1 mm mi rimpicciolisce tutto lo sfondo... allego le img per capire....