Playr

Playr. Hands down the easiest way to play music in Flash Actionscript 3.

Frontpage news

Demos of how it is done

Demos

How to use the Playr class

Tutorials
Download

Playr update: Complete event and toggle methods

January 17th, 2009

Hey all!

First of all: thanks for the massive feedback you guys sent me in! The most wanted feature was a method to toggle play() and pause(). I added that in this release.

And the biggest glitch happend in the most important part of the class: the events. I forgot to implement the ‘Track Complete’ event, so I added that as well.

The following were added to the feature list:

  • Events
    • PlayrEvent.NEXT_TRACK
    • PlayrEvent.PREV_TRACK
    • TRACK_COMPLETE
  • Methods
    • togglePlayPause()
    • registerTogglePlayPause()

Finally there were still a lot of traces in the class which I hadn’t removed before releasing. I removed those now, so your output window should stay clear of my traces ;)

Furthermore: A few people have already been using Playr in real projects. I’ve added them to the showcase section of the site!

If you’re using Playr, feel free to send me a link to your project. I’ll be happy to add it to the list.

Download the updated Playr class here :)
I hope you guys like it! Feel free to suggest new features/report bugs and missing events.

Have your say

Eu-Gene

Great open source audio player! I would like to comment something about the documentation. Currently, I do not see the difference between the InternalEvents and ErrorEvents. It seems to be some overlapping or no clear distiction between the uses (eg: PLAYLIST_STREAM_ERROR and SOUND_STREAM_ERROR). It would help much more documenting the usage of the events. Thanks and once again GREAT job on this player!

Leave a Reply