onClipEvent (enterFrame) {
loadText = new LoadVars();
loadText.load("ipod.txt");
var bytes = loadText.getBytesTotal();
var bytes_loaded = loadText.getBytesLoaded();
if (bytes_loaded == bytes) {
this.thelist = "list loaded";
loadText.onLoad = function(yay) {
if(yay){
this.thelist.html = true;
this.thelist.htmlText = this.thelist;
}else{
this.thelist.text = "Wait a second.";
}
};
stop();
} else {
this.thelist = "loading ipod list (" + Math.round(bytes_loaded/1024) + "kb/" + Math.round(bytes/1024) +"kb)";
stop();
}
}
I added this to a symbol. the Text is named right.
the error is…
loading ipod list (0kb/NaNkb)
please help. 