disco monkey

Monday, September 18, 2006

MP3 Player

I recently found a Flash Tutorial for a MP3 Player. So I took the .fla file that came along with the tutorial and started messing around with it to see if I could figure out how it worked without the help of the tutorial. For the looks I just changed the colors around from the original one. I will eventually make my own skin for the player that I have customized to look the way that I want it to, but for now I wanted to get all of the ActionScript figured out and working the way that I want it to. The player is now loaded on the right side of my blog underneath all of the links so if you are reading this then you should scroll down and check it out. All of the music is stuff that I put together so if you want to comment on it feel free to.

Most of the ActionScript that was used in the original player is still there, but I've modify it so that it ran a little better. There are still a lot of bugs that I need to work out though. One is the number of songs that I can display. The song list and MP3s are loaded in using XML. This is all pretty easy. My problem is that I can't figure out how to have the song list load into a scrolling box so that I can have a long list without having the list take up a lot of space. The other major problem that I am having is that the counter and progress bar won't fully reset when a new song is loaded. I changed the original ActionScript so that the song would play automatically when it is selected. For some reason this caused the counters to reset when the new song loaded, but then the counter and progress bar imediately go back to where they were set on the previous song. I can't figure out why it's doing this because if it's set-up to not auto-play then it doesn't have this problem. The only other problem that I am having right now is that when one song ends it won't automatically load in the next song on the list. I haven't tried to fix this one yet because I thought that the other two were more important, but I plan on getting it fixed as soon as I can.

If anyone reads this and thinks that they might have a solution to the problem I would appreciate any help that could be offered. Or any comments at all would be welcome.

0 Comments:

Post a Comment

<< Home