MX 2004 NaN% error
the bar works fine, but the text box gives a NaN% error, if you change the loadText = to anything else it is fine…
this line of the script is not working in MX 2004
[AS]
loadText = gpNumEase+"%";
[/AS]
[AS]
loadBar._width = 0;
loadText = 0;
var finalLoadBarWidth = 140;
var gpNumEase;
this.onEnterFrame = function() {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
gpNum = Math.round(getPercent100);
gpNumEase += Math.ceil((gpNum-parseInt(loadText))/10);
loadBar._width += Math.ceil(((getPercentfinalLoadBarWidth)-loadBar._width)/10);
loadText = gpNumEase+"%";
if ((bytes_loaded == bytes_total) && (loadBar._width == 100) && (loadText == “100%”)) {
this.gotoAndStop(3);
}
};
stop();
[/AS]