I like it!! I think I’m gonna purchase it!
Posted 4 months ago
Many Flash projects benefit from adding background music. This simple MP3 Player lets you add music to your movie, without the distracting hassle of extra buttons, volume sliders, and unnecessary equalizer animations. The user will be able to quickly turn the music on or off.
Inside the MP3 Player you have numerous settings such as a master volume, default on/off setting, and a randomize feature. You can include an unlimited number of songs on your playlist, all of which are loaded externally. For your convenience, the playlist can be defined both inside the SWF as an array, or externally as an XML file.
All of the options are fully explained in an instructional PDF that comes with the file. The Actionscript is also well commented.
File Details :
Questions About This File :Feel free to ask the author a question about this file before you buy it. You can contact the author using the form at the bottom of their Profile page. Answers will be sent to you via email.
Additional Audio Players :
Get Started :Create a Flashden Account or see More Files from this author.
@ BigShooter
No, the MP3 player will not interfere with other sounds in the movie. It operates out of its own sound object, and so volume changes will only apply to that sound object.
Posted 3 months ago
@ zalec
Yes, you should be able to have several instances of the player in your movie. If you have a player placed in a frame directly after another player, consider giving the movie clips different names or Flash may confuse the two.
The internal playlist option will work perfectly if you would like multiple players with different playlists. You could also have the players loading different XML playlists by simply changing the line of code that loads the XML file.
Glad to hear you are interested in the file! Hopefully that answers your questions, if not, just click on my profile and send me an email.
Posted 3 months ago
Nice file. One issue. How do I stop the track from looping? I have one mp3 in the SWF but when it’s done I would like it to stop. Thanks in advance.
Posted 3 months ago
@ ghettosoul (and anyone else who would like to try this)
To stop the music from looping, simply navigate to line #196 of the Actionscript. There you should find the line of code that plays the next song. It will look like this:
// now play the next song. playMusic();
Change the “playMusic” function to the “stopMusic” function. Now when the 1st track finishes, it will stop playing (just as if someone had pressed the button).
If you need some more assistance, feel free to email me via my profile page.
Posted 3 months ago
you should definetly put at least a volume slider.
I like it, booked.
Posted 3 months ago
I’m not using a button for the release action, I’m using a moviclip. I changed the design, exported, but it isnt working for me.
Posted 3 months ago
@ gabrielsantana
Thank you for purchasing the file. I’ll take that volume slider idea into consideration.
If you are having trouble with your new design, I’d be glad to assist you. Check your inbox for an email i recently sent.
Posted 3 months ago
Hi Fougie, i have the music button 3 times in the same frame and they work amazingly. Except for one issue which i hope you cud help me with: I have made button#1 stop when button#2 is played [using the on release function eg: button1.stopMusic();]. When i go bk to play button#1 again, the song carries on where it left off. Is there a command that will reset it so it starts bk from the beginning again? Cheers – Edd
Posted about 1 month ago
@ edd_blower
There is a variable called currentPosition that keeps track of the place where the song was paused. Try setting it to 0 and that may solve your problem.
If not, you can also try the refreshSoundObject() function.
Best of luck!
Posted about 1 month ago
I would like to do what ed did above, but I am not clear on where to put the on release function he refers to above. Could you please clarify
thank you, your file is great!
amy
Posted about 1 month ago
@ aklemer
If you would like multiple Switch MP3 Players in the same movie, the first step is to duplicate the main movie clip in the library. If not, all the MP3 players will probably end up using the same playlist and performing the same actions, which is usually not the desired effect.
Inside the main movie clip, the mouse events are located on the button. Click once on the button and then check out your Actions panel. You should see a block of code that starts with on(release).
As you can see, it normally just stops or starts the MP3 player. With a bit of modification, you can also make it stop and start other Switch MP3 Players. You just have to address them correctly, like so:
_parent.myOtherMP3Player.stopMusic();
The beginning of the code will change depending on where your movie clip is located, and what you have named it.
Posted about 1 month ago
Can this be set to randomly play an mp3 each time the page is visited?
Posted 5 days ago
@ stockstreet
Yes, the MP3 player does have a randomize feature that can easily be turned on or off.
Posted 2 days ago