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.

July 25th, 2006 at 12:06 pm
“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.
July 25th, 2006 at 4:07 pm
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.
August 28th, 2006 at 5:59 am
Thanks !!
Now I understand AS3 thanks to you
++
September 1st, 2006 at 3:20 pm
Very good reading. Peace until next time.
WaltDe
April 18th, 2007 at 11:38 pm
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.
July 28th, 2008 at 3:33 pm
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?
August 12th, 2008 at 9:57 am
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.
October 22nd, 2008 at 10:45 am
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.
October 25th, 2008 at 7:45 am
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.
October 26th, 2008 at 9:15 am
This is much interesting article! Thanks!
November 2nd, 2008 at 11:46 pm
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.
November 15th, 2008 at 2:45 pm
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.
November 28th, 2008 at 11:01 pm
Yep - I would agree with that.. Thanks for the line.
December 7th, 2008 at 5:45 am
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.
December 16th, 2008 at 7:07 pm
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
January 6th, 2009 at 4:54 am
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?.
January 6th, 2009 at 5:27 am
To be more specific this happens only when using more than one tab.
January 15th, 2009 at 10:38 am
Interesting article, i have bookmarked your blog for future referrence, thanks
January 21st, 2009 at 3:45 am
wow!
i not show time.
February 16th, 2009 at 5:45 pm
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.
February 23rd, 2009 at 6:34 pm
Does anyone know where I can find free trial of acai berry?
February 25th, 2009 at 3:25 pm
beautiful site..))
I will go to you.
February 25th, 2009 at 4:54 pm
Hello! I m here!
February 25th, 2009 at 5:26 pm
cool!!!
March 1st, 2009 at 3:08 pm
is there a forum on the site?
March 11th, 2009 at 1:46 pm
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.
March 13th, 2009 at 10:45 pm
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.
March 18th, 2009 at 10:24 am
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
March 18th, 2009 at 8:16 pm
Where can I get acai locally? Thx, Sharon
March 29th, 2009 at 9:03 pm
Very nice blog! This guide helped me…
I really appreciate it. thank you.
April 4th, 2009 at 6:10 pm
ah..now i see..thanks..i have been wondering what as3 was.
April 20th, 2009 at 1:40 pm
April 26th, 2009 at 12:51 am
love this website..
April 26th, 2009 at 4:46 pm
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.
April 27th, 2009 at 4:46 am
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.
May 1st, 2009 at 7:45 am
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.
May 5th, 2009 at 7:45 pm
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.
May 9th, 2009 at 4:47 am
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.
May 14th, 2009 at 8:33 pm
nice post, thx for sharing it
May 17th, 2009 at 7:47 pm
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.
May 17th, 2009 at 10:45 pm
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.
June 26th, 2009 at 11:00 am
Interesting website, i have bookmarked your site for future referrence