dimenticavo..
codice:onClipEvent (enterFrame) { var bytes = _root.menu.iconpopup.xml_image.getBytesTotal(); perc = Math.round((car*100)/tot); var bytes_loaded = _root.menu.iconpopup.xml_image.getBytesLoaded(); if (bytes_loaded >= bytes) { if(!ok){ _root.menu.iconpopup.xml_image.gotoAndPlay(5); this.partetxt = "MOVIE LOADED"; ok = true; } } else { // che senso ha farlo andare al frame 1 ad ogni enterFrame?? _root.menu.iconpopup.xml_image.gotoAndStop(1); var percent = (bytes_loaded * 100)/bytes; loading.text = "Loading... " + perc + "%"; trace(percent); this.partetxt = "(" + bytes_loaded + "/" + bytes +")"; } }

Rispondi quotando