stop();
_root.preloading = 1
var loaded_bytes = 0;
var total_bytes = 0;
var percentage;
var percentageText = "";
var preload = setInterval(preload, 700);
preload = function () {
if (_root.preloading == 1) {
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
percentage = Math.round(loaded_bytes/total_bytes*100);
bar._xscale = percentage;
percentageText = percentage+"%";
if (loaded_bytes>=total_bytes-1) {
gotoAndStop(2);
clearInterval(preload);
_root.preloading = 0
}
}
};
setInterval(preload, 700);