ActiveDen

MusicPlayer v1

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.

You must sign in or sign up to purchase this item.

$8Regular Licence

$8

Regular Licence a website (commercial, personal, client), free game, e-card, or presentation - Details

35 Purchases 11 Comments

Buyer Rating
12345 ( 7 ratings )
frankieboywonder

frankieboywonder

  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
View Portfolio
Created 10 July 08
ActionScript Version Unknown
Documentation Well Documented
Opens With Flash 8 (8+)
Published Size 28kb
by
by
by
by
by