Summertime = new Sound(SummertimeMC);
Summertime.loadSound("Summertime.mp3");
preloadNow = 1;
SummertimePosition = _root.jukebox_mc.Summertime.position/1000;
this.onLoad = function() {
SummertimeLoading = 0;
_root.jukebox_mc.loadBar._xscale = SummertimeLoading;
};
this.onEnterFrame = function() {
SummertimeBytesTotal = _root.jukebox_mc.Summertime.getBytesTotal();
SummertimeBytesLoaded = _root.jukebox_mc.Summertime.getBytesLoaded();
if (preloadNow == 1 && SummertimeBytesLoaded>0) {
SummertimeLoading = Math.round((SummertimeBytesLoaded/SummertimeBytesTotal)*100);
_root.jukebox_mc.percentLoadedText = SummertimeLoading+"%";
_root.jukebox_mc.loadBar._xscale = SummertimeLoading;
_root.jukebox_mc.box.list = "Summertime";
if (SummertimeLoading == 100) {
playing = true;
_root.jukebox_mc.Summertime.start(SummertimePositi on, 0);
preloadNow = 0;
_root.jukebox_mc.box.list = "Summertime";
}
}
};