# Music Player Testing/Help

**URL:** <https://forum.kirupa.com/t/music-player-testing-help/61330>\
**Category:** flash\
**Created:** [August 17, 2004, 8:13pm UTC](https://forum.kirupa.com/t/music-player-testing-help/61330 "2004-08-17T20:13:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wanyo](https://avatars.discourse-cdn.com/v4/letter/w/9d8465/32.png) [@wanyo](https://forum.kirupa.com/u/wanyo)\
**Post date:** [August 17, 2004, 8:13pm UTC](https://forum.kirupa.com/t/music-player-testing-help/61330/1 "2004-08-17T20:13:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 17, 2004, 10:01pm UTC](https://forum.kirupa.com/t/music-player-testing-help/61330/2 "2004-08-17T22:01:30Z")

</div>

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.

```php
// 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");
	 }

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 23, 2004, 11:32pm UTC](https://forum.kirupa.com/t/music-player-testing-help/61330/3 "2004-08-23T23:32:07Z")

</div>

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!
