Yag,
prova a mettere questo codice sul primo frame:
codice:
// altezza finale sfondo
sfondo_endHal = 1;
this.onEnterFrame = function() {
// creo lo sfondo sullo stage (sopra a tutto)
if (!once) {
this.createEmptyMovieClip("sfondo", this.getNextHighestDepth());
with (sfondo) {
beginFill(0xFF0000, 100);
lineStyle(0, 0x000000, 0);
//
moveTo(0, 0);
lineTo(0, -Stage.height);
lineTo(Stage.width, -Stage.height);
lineTo(Stage.width, 0);
lineTo(0, 0);
endFill();
//
this._x = 0;
this._y = Stage.height;
}
once = !once;
}
// preload
loaded = Math.round(this.getBytesLoaded()/this.getBytesTotal()*100);
perc = (Stage.height*loaded)/100;
sfondo._height = (Stage.height-perc)+sfondo_endHal;
if (loaded == 100) {
// alla fine del preload, esegui...
nextFrame();
}
};
stop();
dovrebbe funzionare.
Ciao,
-