ActionScript:
this.onEnterFrame = function() {
var total_bytes = this.getBytesTotal();
var loaded_bytes = this.getBytesLoaded();
var frames_loaded = this._framesloaded;
var percent = Math.round((loaded_bytes/total_bytes)*100);
this.bar._xscale = percent;
this.status_tekst.text = "percent loaded: " + percent;
if (frames_loaded > 0 && total_bytes == loaded_bytes) {
this.gotoAndStop(2);
delete this.onEnterFrame;
}
}
stop();
Fandt den i en anden post om preload her på udv
-------------------------------------------------------
Jonas (Decko)
-------------------------------------------------------