Wednesday, January 30, 2008

Making A Music Player

After downloading the new Flash program, I decided to make a music player, driven by a playlist that was coded in XML.

The playlist its self is not hard to write or to edit, but due to Flash's lack of saving, XML was the only choice.

I had remembered a great website that was made by a person called Lee Brimelow, which offered free high quality video tutorials on Flash.

So, I went ahead and downloaded his whole series, which was a whopping 1.45 GB, but it downloaded within a day on a 512 connection.

Using his guide to remember the basics of Actionscript, I made the player. With 140 lines of code, it was quite a long job, but it worked.

If you want to be more technical, the player reads the XML playlist to store the path to the MP3 files, and then it reads the ID3 tags stored inside the music files, which contain the song title/artist name and other information. Using these, it plays the music files.

And here is a screenshot of the program at work. You must excuse the quickly done background, and the weird name, and the stupid volume slider which I must replace. Other than that, I'm quite proud of myself. :D

6 comments:

  1. Although i haven't understand the procedure but it looks you did a good job :) congratulations , do you have snow?

    ReplyDelete
  2. What where is the link to go to theweb instead of "great website well I need to find research on an mp3 player or how to put it together

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. Good day !.
    You re, I guess , perhaps curious to know how one can reach 2000 per day of income .
    There is no need to invest much at first. You may commense to get income with as small sum of money as 20-100 dollars.

    AimTrust is what you thought of all the time
    The company represents an offshore structure with advanced asset management technologies in production and delivery of pipes for oil and gas.

    Its head office is in Panama with offices around the world.
    Do you want to become really rich in short time?
    That`s your choice That`s what you wish in the long run!

    I`m happy and lucky, I began to get income with the help of this company,
    and I invite you to do the same. If it gets down to choose a correct companion who uses your money in a right way - that`s it!.
    I earn US$2,000 per day, and my first investment was 500 dollars only!
    It`s easy to start , just click this link http://tuqutevo.s-enterprize.com/eqesyz.html
    and go! Let`s take our chance together to feel the smell of real money

    ReplyDelete
  5. [url=http://www.youtube.com/watch?v=pa8xW-AQGHA]handyspy-man[/url]

    ReplyDelete
  6. I'm trying to create a custom theme for my iPhone. Does anyone know how I can actually make it myself? I don't want to download anything like un-lockable because I want it to be my own so I can upload it to cydia when the theme is complete. Please help!



    ________________
    [url=http://unlockiphone22.com]unlock iphone[/url]

    ReplyDelete