This is nice, how hard would it be for you to add a download track button to this, maybe for the next version?
Posted 6 months ago
The MusicPlayer class is where all the magic happens! For the technically minded I have laced the class with an abundance of comments, so if you want to get under the hood it shouldn’t be too tough.
Just get the player onto the stage (dynamically or at author time) and then instantiate the class. Detailed documentation is included, but here are a few of the key parameters you can edit…
playerWidth:Number This is the width you would like the player to be.
numRowsToShow:Number This is the number of rows you would like visible in your drop down playlist.
NOTE : The player will automatically add scroll bars if the number of tracks you have specified in the XML exceeds the number of rows you would like to display
listFormat:TextFormat This is a user-defined TextFormat object that allows you to control the style of the playlist text boxes.
playingTrackColour:Number This is the colour the label will turn when a viewer selects a track. This is so people know what track they are listening to!
startExpanded:Boolean This determines whether the player starts with the playlist expanded (true) or collapsed (false)
autoPlay:Boolean This determines whether the first track in the playlist plays as soon as the player has loaded (true) or needs a viewer to click the play button or select a track first (false)
stream:Boolean This setting determines whether MP3 files are streamed into the player so they start immediately (true) or load completely before starting (false).
PUBLIC FUNCTIONS There are several public functions that you can call that allow you to…
myPlayer.addShadow() This adds a drop shadow to the entire player. If you want to modify the parameters of the shadow filter you will have to do it manually in the class file
myPlayer.addBorder(thickness:Number, colour:Number) This puts a border round the entire player, including playlist.
myPlayer.stopPlayer() This will stop the MP3 playback.
You can also EASILY change the colour scheme of the playlist and reskinning the entire player is super-simple.
Posted 6 months ago
This is nice, how hard would it be for you to add a download track button to this, maybe for the next version?
Posted 6 months ago
I would like three download links CD MP3 i-tunes, could you mod this? A quick higher priced Version 2? Or would you update this beauty?
The Qui-gon
Posted 6 months ago
Well, I think it’s nice the way it is. Simply simple yet functionally functional.
Posted 6 months ago
OK, thanks for your comments, I never thought about download buttons!
I will see what I can do, but it will have to wait as I need to finish a couple of other things first!
Glad you like it!
Posted 6 months ago
Yes, it is easy to resize, you just change the playerWidth and numOfRows. I would however advise that you don’t make it smaller than about 250 wide. Making numOfRows zero will mean there is no drop down.
If you want this I have included a mute button to replace the play list drop down button, you just need to swap the symbols and change one line of code in the class (its documented).
Posted 5 months ago
Nice but would be better to have the option for a slider bar on the list…...didn’t you know everyone tries to save miliseconds on everyday tasks nowadays? lol
Posted 5 months ago
Hi nice job, but can you help to make this player play from url not from xml file ? Thanx alot.
Posted 5 months ago
Adventura: I’m not sure what you mean, the XML file is essential to this player, but you can use absolute URLs to target your MP3 ’s. You may have to investigate the Flash Player security model if your MP3s are in a different domain.
Posted 5 months ago
hello.
I am trying to use the player to play some Hebrew songs, but if the name of a track has Hebrew characters, they will not be shown… for some reason only English chars are shown… what can I do?
Thanks
Rotem rotemmon@gmail.com
Posted 4 months ago