Nel 1° frame...
codice:stop(); var bylo:Number = this.getBytesLoaded(); var byto:Number = this.getBytesTotal(); var pctLoaded:Number = 0; this.onEnterFrame = function() { pctLoaded = Math.round(bylo/byto*100); my_txt.text = 'I am loading '+pctLoaded +'% '; if (bylo >= byto) { delete this.onEnterFrame; play(); } else { bylo = this.getBytesLoaded(); byto = this.getBytesTotal(); } }