Register or
blog tutorials games designs about
        Tutorial: Flash MP3 Player


Tutorial Instructions


1. Create three buttons: play, stop, pause



2. Create three boxes and convert to movie clips, one outline, two filled in
Name the first filled in box playBar and the second filled in box loadBar



3. Create two dynamic text boxes: song and artist
Make sure you change there instance names to song and artist also... preferably song on top.





4. Put the three boxes together and add two dynamic text boxes.
Name the instance names of the text boxes curSeconds on the left, and totalSeconds on the right.



5. Add a volume slider to the mp3 player.
Literally you can copy and paste the source from my other tutorial volume slider.



6. Add the following code to the top of the first frame
You will be adding more code later, this is just the beginning part onLoad



7. Outside the last function add the following code after it



8. Add the following function to the last part of the first frame
Put it at the bottom of the last two codes you just added. It is necessary for the previous code to work.



9. Add the following code to the play button



10. Add the following code to the pause button



11. Add the following code to the stop button



12. Everything is now complete. It should look kind of like this when its done.



Download the Source Files


Comments


tmproductions (3 Months ago)
Do you have a tutorial for a player similar to your MP3 player that has a playlist? I like the layout of that player. Thanks


projectfinale (3 Months ago)
I could post the source code if you would like and then make a video explaining how everything works.

The problem is that it is not very clean code.... Ill try and clean it up before I post it...


tmproductions (3 Months ago)
Ok thanks so much. Im not wanting to change much of what you have already designed. I am just planning to change the colors to fit the color scheme that i want. but the code should still do what you have it doing.


projectfinale (3 Months ago)
Files have now been posted to download the advanced one for use :)

Enjoy!


janapana (2 Months ago)
Please can i also have the files tmproductions requested. Also is it possible to create player that will play both mp3 and flv movies.


projectfinale (2 Months ago)
The files should be at the bottom of the page.... If not, there are source files at this page... http://www.projectfinale.com/webapps/mp3player


mrchain (1 Day ago)
is there a way to load the player on a new layer as an external file? I keep getting errors loading it and doesn´t work at all... help?


projectfinale (23 Hours ago)
I am not exactly sure of the problem you are getting... Not exactly sure what you mean by loading it either... If you are trying to load the .swf file, the path is empty so it will give you errors...


You must be logged in to post comments...