I have a music player and because of my fast connection I cannot test if the pre-loader and or bar works. Also no matter what I do I can’t get the second track to play. It has the same set of actions pretty much as the first. If anyone could help, I’d be greatful.
I’ve spent all day on this and I have it semi-functioning. However now when I upload it, it will not work. I simply get a nan value in the percent loading. This is my revised code. Does anyone know what I’m doing wrong? Thanks in advance.
// create new sound object & load track1 into it
trackOne = new Sound();
trackOne.loadSound("track1.mp3",false);
// check bytes loaded and total
downloaded = Math.round(trackOne.getBytesLoaded());
total = Math.round(trackOne.getBytesTotal());
trace(trackOne.getBytesTotal());
trace(trackOne.getBytesLoaded());
// set load bar
getPercent = downloaded/total;
this.loadbar_mc._width = getPercent*180;
this.trackData = Math.round(getPercent*100)+"%";
// if not loaded then display
if (downloaded != total) {
gotoAndPlay("loop");
} else {
trackData = "track 1";
gotoAndPlay("1loaded");
}
Is there any audio actionscript masters that could help me?
After yet another 8 hour day I can’t figure this out. I’m desprate!