# Fully Dynamic XML MP3 Player v1.1

**URL:** <https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701>\
**Category:** classic bestof\
**Created:** [November 30, 2003, 8:50pm UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701 "2003-11-30T20:50:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voetsjoeba](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Voetsjoeba](https://forum.kirupa.com/u/Voetsjoeba)\
**Post date:** [November 30, 2003, 8:50pm UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/1 "2003-11-30T20:50:56Z")

</div>

**[size=3][color=Red]** VERSION 2: [http://www.kirupaforum.com/forums/showthread.php?t=49368](http://www.kirupaforum.com/forums/showthread.php?t=49368) **[/color][/size]**

Hello everybody 🙂

I just finished a project I started a while ago, a fully dynamic MP3 player (with preloader and time indication) with an XML playlist. You can see a working example of it here: [http://users.pandora.be/voetsjoeba/Mp3.html ,and the playlist is located here: [url=“http://users.pandora.be/voetsjoeba/playlist.xml”]http://users.pandora.be/voetsjoeba/playlist.xml](http://users.pandora.be/voetsjoeba/Mp3.html).

As I said, it is fully dynamic. That includes the fact that you only have to update the XML file with new values to add a song. It is written as a class that needs two parameters: an object containing the links to the elements of the interface, and the playlist array. Everything else goes fully automated.

I wanted to share it with you guys, and ask if you saw any bugs, or if you would like to see some features added. If so, let me know and I will implement them if I can. I was surprised at how easy this was actually.

\*Stupid link parser 😛

---

<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:** [December 21, 2003, 3:25am UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/2 "2003-12-21T03:25:05Z")

</div>

Hey mate

First excellent player simple but yet excellent.

Now I have found one bug in the player pretty big one in a way. When the mp3 is loading and you presss the pause button then play again BEFORE the sound file has finished downloading the player skips to the next track and starts loading the next track.

Is their a way to disable the button when a track is loading?

Again Excellent player

Regs  
Jacko

---

<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:** [December 21, 2003, 9:27am UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/3 "2003-12-21T09:27:19Z")

</div>

Thank you jacko33 🙂

I have checked the bug you reported, but it didn’t skip tracks for me. However, it did stop preloading, and that’s a bug too of course. Thank you for noticing ! 🙂

---

<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:** [December 21, 2003, 1:08pm UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/4 "2003-12-21T13:08:26Z")

</div>

Hey Voetsjoeba

Just a follow on from the last bug when I have tested on a modem I find if I press the pause button then the play button it stops preloading as you stated andall the track names cycling throug fast in a loop like their is looping also the play pause button keeps flicking between pause play.

I will try and screen capture it for u so you can see it.

It also happens with the example page you have supplied.

Have a merrry christmas mate

Regs,  
Jacko

---

<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:** [December 21, 2003, 1:49pm UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/5 "2003-12-21T13:49:53Z")

</div>

Thanks, have a merry christmas too =)

I’ll look after the bug, I would’ve done it earlier but Flash crashed and I didn’t feel like firing it up again 😛 I think I’ll fix this by disabling the controls while it’s preloading … Yeah, that’s what I’m gonna do.

_double-clicks Macromedia Flash MX 2004.lnk_

---

<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:** [December 21, 2003, 2:06pm UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/6 "2003-12-21T14:06:12Z")

</div>

Yeah I think that is the easiest, but I think it would still be cool to have the skip track buttons active so people can skip tracks they hate and don’t have to waste bandwidth on tracks they think bite.

Anyway I have to do some last minute christmas shopping.

happy xmas everyone.

Regs,  
Jacko

---

<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:** [December 21, 2003, 7:26pm UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/7 "2003-12-21T19:26:32Z")

</div>

gr8 job votes!

---

<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:** [December 21, 2003, 7:26pm UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/8 "2003-12-21T19:26:32Z")

</div>

gr8 job votes!

---

<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:** [December 22, 2003, 8:05am UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/9 "2003-12-22T08:05:11Z")

</div>

Thanks digitalosophy 🙂

[size=1]I still haven’t uploaded the swf with the bug fixed …[/size]

---

<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:** [December 22, 2003, 7:07pm UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/10 "2003-12-22T19:07:04Z")

</div>

Wow, it’s excellent. The best I’ve done was a ‘classic’ stream, for a website’s jukebox. The only suggestion I have (It’s a cool one, not too hard to make) would be to have a seek bar. Can just make it by placing a little moive/draggable box on the load bar. You already have all the variables for the time elapsed, and total time, right?

onClipEvent(enterFrame){  
\_x=\_root.bar.\_x + int(\_root.elapsedtime / \_root.totaltime / \_root.bar.\_width)  
}

Or define a function on the first frame, if you want. It makes it good 'n interactive.

The volume bar; when I drag it one pixel the sound often changes by two, are you sure it’s 100 pixels high? Not a big deal; just saying. If I were doing this I’d eliminate the anti-aliasing on the buttons (not the movie quality), by making their coordinates integers. I guess that’s my design scheme, though, not a bug or anything.

Sands of Morocco!

---

<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:** [December 22, 2003, 7:28pm UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/11 "2003-12-22T19:28:48Z")

</div>

Yeah, I could add that pretty fast. I’m wondering how you can tell the sound increases by exactly 2 😛 I honestly don’t know what size that volume slider is anymore, but it sure doesn’t bother me. 🙂

---

<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:** [December 22, 2003, 11:44pm UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/12 "2003-12-22T23:44:51Z")

</div>

Hey Voetsjoeba,

A great job on the mp3 player… thumb:  
But could it be possible to make the mp3 player as in the top right corner as they did on this site?  
[http://turnbox.com/loose/turnbox\_flash.html](http://turnbox.com/loose/turnbox_flash.html)

and maybe with a drop down menu that way you can fit the player in any spot:) :

Andreas

---

<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:** [December 23, 2003, 1:46am UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/13 "2003-12-23T01:46:23Z")

</div>

Hey Anderson

Like the example trying to get the same result too.

Regs,  
Jacko33

---

<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:** [December 23, 2003, 3:03am UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/14 "2003-12-23T03:03:56Z")

</div>

> \*Originally posted by Voetsjoeba \*  
> \*\*Yeah, I could add that pretty fast. I’m wondering how you can tell the sound increases by exactly 2 😛 I honestly don’t know what size that volume slider is anymore, but it sure doesn’t bother me. 🙂 \*\*

. . . there’s a variable next to it . . .

---

<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:** [December 23, 2003, 3:54am UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/15 "2003-12-23T03:54:16Z")

</div>

> \*Originally posted by andersom \*  
> \*\*  
> and maybe with a drop down menu that way you can fit the player in any spot:) :

Andreas \*\*

are you talking about this player here?? [http://www.awamusic.com/index\_main.html](http://www.awamusic.com/index_main.html)

great job voetsjoeba!!! even though i don’t understand actionscript!

---

<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:** [December 23, 2003, 10:53am UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/16 "2003-12-23T10:53:47Z")

</div>

> \*Originally posted by andersom \*  
> \*\*Hey Voetsjoeba,

A great job on the mp3 player… thumb:  
But could it be possible to make the mp3 player as in the top right corner as they did on this site?  
[http://turnbox.com/loose/turnbox\_flash.html](http://turnbox.com/loose/turnbox_flash.html)

and maybe with a drop down menu that way you can fit the player in any spot:) :

Andreas \*\*

Yes it is, all I’d have to add is a dropdown list of the songs. Not that hard, since I’ve already got an array with every data in it. Just a for loop that places it in the dropdown menu, no big deal.

---

<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:** [December 23, 2003, 11:49am UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/17 "2003-12-23T11:49:58Z")

</div>

Hello Voetsjoeba,

That would be very handy… but i noticed when you come on the site of [Turnbox.com](http://Turnbox.com), the music starts after a few seconds when it’s loaded a small part of the song. Would this be possible in your player?  
Thanx for your reply.

---

<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:** [December 27, 2003, 11:37am UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/18 "2003-12-27T11:37:03Z")

</div>

Wow dude you rock! I really really reaaaaaaaaaaaaaaaaally like this one. Very Nice! I am currently adding some visuals to the mp3 player. I’m trying to make a real one. You know such a pocket thingy. I got one too, really neat stuff. I’ll post when it’s done.

BTW I hope you don’t mind that I’m modifying your brilliant masterpiece Voetsjoeba?

---

<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:** [December 27, 2003, 5:20pm UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/19 "2003-12-27T17:20:50Z")

</div>

> \*Originally posted by CoDe-ReD \*  
> \*\*Wow dude you rock! I really really reaaaaaaaaaaaaaaaaally like this one. Very Nice! I am currently adding some visuals to the mp3 player. I’m trying to make a real one. You know such a pocket thingy. I got one too, really neat stuff. I’ll post when it’s done.

BTW I hope you don’t mind that I’m modifying your brilliant masterpiece Voetsjoeba? \*\*

Not at all, free for all use. Glad you like it 🙂

---

<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:** [December 27, 2003, 7:48pm UTC](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701/20 "2003-12-27T19:48:32Z")

</div>

So here is a little screenshot of the design. It is still on my harddrive cuz I can’t find a suitable hosting site that will host MP3 files for me. I’ll have a look @ that tomorrow after I’ve installed my new CPU cooler (Coolermaster Aero 7+, WIND POWER MWAHAHHAHAHAHA :evil: ) So anyways back to the screenshot:

[Next page](https://forum.kirupa.com/t/fully-dynamic-xml-mp3-player-v1-1/36701.md?page=2)
