Playing with AS3 - An example MP3 player component
Tuesday 25 July 2006 @ 8:46 am
Filed under:

I have finally gotten around to playing with AS3, and I decided to pick the Sound object as one to play with. In the end, I ended up creating a simple music playback “component” that uses a whole number of AS3 features. I am including the example here along with the source. Enjoy! Note: error handling is not yet very robust, but it still shows numerous aspects of AS3 in use. Requires Flash Player 9.

Grrrr… WordPress is munging the object and embed tags. The example can be seen here for the moment.

Another update: Did I mention error handling is not quite robust yet? Seems to not be loading anything over the server, however feel free to download the zip file and play with it locally.

Update 3: Seems it was just a case sensitivity issue on the file name, it’s up and running now.

Update 4: I have a new example up that adds some constructor options to some of the classes, and also adds a simple frequency spectrum display. Take a look and grab the updated source if you wish.

— By Nathan Derksen     PermaLink

42 Responses to “Playing with AS3 - An example MP3 player component”

  1. unijimpe Says:

    “Grrrr… WordPress is munging the object and embed tags”

    Hello, my name is Jim and i have created plugin for WordPress
    that it allows to insert SWFs in your WodrPress Blog. This Plugin
    uses the SWFObject library. The use is very simple, this plugin
    simply encloses the Javascript and insert code for insert SWFObject.

    The form to insert SWF is:
    [swf] pathtofile.swf, width, height[/swf]

    You can see an explanation and example in: http://unijimpe.pandela.net/?p=18.

  2. Nathan Derksen Says:

    Awesome, thanks! I will check that out. I was initially trying to use SWFObject, but the script tag seemed to be getting munged by WordPress, too. This looks like it will fit the bill perfectly.

  3. Yogz Says:

    Thanks !!
    Now I understand AS3 thanks to you ;)
    ++

  4. WaltDe Says:

    Very good reading. Peace until next time.
    WaltDe

  5. mycho Says:

    this is exactly what i was looking for at the right time (educational as 3.0 example using music, and the wordpress flash plugin.

    much obliged.

  6. Mark Says:

    Hi.
    Can you tell me why you do not save references to the elements in a Display Object?
    (eg. Progressbar). Instead you always lookup up elements by getChildByName().

    I don’t wanna say its not good to do so… i’m just curious. memory concerns?

  7. Nathan Derksen Says:

    Howdy, sorry missed your note. There is nothing wrong with doing that, I do it myself when I need to access something frequently. I just don’t like having too many handles hanging around.

  8. Mp3 Players Says:

    Hi there, what entice you to post an article on Playing with AS3 - An example MP3 player component? This article was extremely interesting, especially since I was searching for thoughts on this subject last Wednesday.

  9. Don Mp3 Says:

    Hey!, what made you want to write on Playing with AS3 - An example MP3 player component? I was wondering, because I have been thinking about this since last Saturday.

  10. Free mp3 downloads Says:

    This is much interesting article! Thanks!

  11. Mp3 Download Says:

    Good Day EXpert, I fell lucky that I located this post while browsing for mp3 download. I am with you on the topic of Playing with AS3 - An example MP3 player component. Ironically, I was just putting a lot of thought into this last Monday.

  12. A Mp3 Says:

    Hello Expert, I fell blessed that I found your post while searching for a mp3. I agree with you on the subject Playing with AS3 - An example MP3 player component. I was just thinking about this matter last Saturday.

  13. geoff daum Says:

    Yep - I would agree with that.. Thanks for the line.

  14. Mp3 Mp3 Says:

    Hello Expert, I am glad I pressed harder enough until I found mp3 mp3, because this post on Playing with AS3 - An example MP3 player component was extremely helpful. Just last Sunday I was pondering on this quite a bit.

  15. www.goldpreise.biz Says:

    Hey!, thanks for the good “Playing with AS3 - An example MP3 player component” post. Would it be possible, that i can write a story about this post in our local newspaper? I would be really happy if i can do this and i will give you a link from a german blog too. Please answer. Greetings Goldpreise

  16. Deepan Says:

    Hey Thank you for the component.

    But I have one problem when using the seek function in browser(ie7). sometimes it seems to stop when we seek beyond 50% and when we seek back it plays and the progress bar stops in the middle(the whole song is completed). do I have to do any thing to avoid this problem?.

  17. Deepan Says:

    To be more specific this happens only when using more than one tab.

  18. gry planszowe Says:

    Interesting article, i have bookmarked your blog for future referrence, thanks

  19. Sitthykun Says:

    wow!

    i not show time.

  20. Now We Are Free Mp3 Says:

    Whatz up Guru, I am glad I pressed harder enough until I found now we are free mp3, because this post on Playing with AS3 - An example MP3 player component was extremely helpful. Just last Monday I was pondering on this quite a bit.

  21. Nicole Says:

    Does anyone know where I can find free trial of acai berry?

  22. Abstriumsters Says:

    beautiful site..))
    I will go to you.

  23. Hakwest Says:

    Hello! I m here!

  24. babuin Says:

    cool!!!

  25. Julya Says:

    is there a forum on the site?

  26. Free Mp3 Downloads Says:

    Hi Guru, I am glad I pressed harder enough until I found free mp3 downloads, because this post on Playing with AS3 - An example MP3 player component was extremely helpful. Just last Wednesday I was pondering on this quite a bit.

  27. Free Music Downloads Mp3 Player Says:

    Whatz up, what entice you to post an article on Playing with AS3 - An example MP3 player component? This article was extremely interesting, especially since I was searching for thoughts on this subject last Saturday.

  28. Mp3 Download Net Says:

    Hello webmaster, I found your blog via Google while searching for mp3 download net and your post regarding Playing with AS3 - An example MP3 player component looks very interesting for me

  29. Pure Acai Says:

    Where can I get acai locally? Thx, Sharon

  30. mp3-player-speakers Says:

    Very nice blog! This guide helped me…
    I really appreciate it. thank you.

  31. i love mp3 players Says:

    ah..now i see..thanks..i have been wondering what as3 was.

  32. Mary-zw Says:

  33. Free Music @ www.jagmp3.net Says:

    love this website..

  34. 2007 Mp3 Says:

    Hey!, I am glad I pressed harder enough until I found 2007 mp3, because this post on Playing with AS3 - An example MP3 player component was extremely helpful. Just last Sunday I was pondering on this quite a bit.

  35. Mp3 Free Music Downloads,uk Says:

    Hey!, I fell lucky that I located this post while browsing for mp3 free music downloads,uk. I am with you on the topic of Playing with AS3 - An example MP3 player component. Ironically, I was just putting a lot of thought into this last Monday.

  36. Free Mp3 Says:

    Good Day, I am glad I pressed harder enough until I found free mp3, because this post on Playing with AS3 - An example MP3 player component was extremely helpful. Just last Friday I was pondering on this quite a bit.

  37. Mp3 Download Net Says:

    Whatz Expert, what entice you to post an article on Playing with AS3 - An example MP3 player component? This article was extremely interesting, especially since I was searching for thoughts on this subject last Tuesday.

  38. Free Music Download Mp3 Says:

    Hello Guru, what made you want to write on Playing with AS3 - An example MP3 player component? I was wondering, because I have been thinking about this since last Saturday.

  39. ipod Says:

    nice post, thx for sharing it

  40. Free Mp3 Music Downloading Says:

    Howdy Expert, I fell lucky that I located this post while browsing for free mp3 music downloading. I am with you on the topic of Playing with AS3 - An example MP3 player component. Ironically, I was just putting a lot of thought into this last Sunday.

  41. Mp3 Free Music Downloads Says:

    Hi there, what made you want to write on Playing with AS3 - An example MP3 player component? I was wondering, because I have been thinking about this since last Monday.

  42. teksty z linkiem Says:

    Interesting website, i have bookmarked your site for future referrence :)

Leave a Reply


Blog Categories

Browse by Date
July 2006
M T W T F S S
« Apr   Oct »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Monthly Archives

Bloggers Area

XML Feeds Option