hi … i m trying create one EnterFrame function in movieclip that show percentage loaded. this is my script:
[COLOR=DimGray]/*
this movie code be in frame inside movieclip
when load external swf in this movieclip automatic preload
*/[/COLOR]
this.onEnterFrame = function() {
var totBy = this.imagem.getBytesTotal();
var loadBy = this.imagem.getBytesLoaded();
var getBy = loadBy/totBy;
//#
if (totBy > loadBy) {
this.texto.visible = true;
this.texto.text = Math.round(getBy*100)+"%";
};
if (totBy = loadBy) {
this.texto.text = "";
};
};
Anyone can help me ?
Thanks in advance and wating …