Web Hosting
GigFoot Web Hosting


Software
Support
Hosting
Boards
Today
Users
Links
Flash
FAQ
LOL
3D

FAQ Index / Top Ten FAQ's / Newest FAQ's / Search / Go Back

How do i use the Flash MP3 Player?

This faq is an online instruction manual for the Flash MP3Player available in our software library. Buy a Flash MP3Player

If you want to play a specific song, pass it into your html object code by declaring the mp3 as your src variable. Your object code is the html you use the display a flash movie file. The variable src is used by the mp3player to know what song you want to hear.

    Example: mp3player.swf is your flash mp3player
  • To load the mp3 titled "MyFavoriteSong.mp3"
  • mp3player.swf?src=MyFavoriteSong.mp3
  • To load the mp3 titled "everybody's talking.mp3"
  • mp3player.swf?src=everybody's talking.mp3 As long as the mp3 file exists as named, the mp3player will play the song you requested.

You can specify other variables too besides src. For example, if you want the song to automatically start playing, set the variable autoStart and pass it in your flash object code. You can pass src and autoStart by seperating these variables with an ampersand & symbol.

    Example: mp3player.swf is your flash mp3player
  • To load the mp3 titled "MyFavoriteSong.mp3" and play automatically
  • mp3player.swf?src=MyFavoriteSong.mp3&autoStart=y the variable autoStart is considered boolean, meaning its either something or nothing, the default is off.
  • Variable vol sets the volume if needed. Volume is 0-100 in value.
  • Variable bgColor sets the bgColor for the mp3 player. You can override the bgColor by passing it in the query string. Like so... /mp3player/index.cgi?bgColor=FF0000
  • Variable reload controls if the mp3player will cycle to the next song. Default is on, so really all you need to do is turn it off if you do not want to reload a new song. Turn it off by setting it to nothing. So mp3player/index.cgi?src=mp3file.mp3&reload=& will turn off reload.
  • Variable shuffle controls if the mp3player will shuffle the list randomly for you. Default is on, to turn it off pass a blank variable via your query_string. Hence mp3player.swf?shuffle=. Or when used with other variables, shuffle off looks like this... mp3player/index.cgi?src=mp3file.mp3&shuffle=& The last ampersand is optional.

Make My Home Page Start the MP3 Player

If you want your website home page to automatically open the mp3player we got you covered. Rename your current home page to "index_main.html" and use this code for your new "index.html" page. Home Page MP3Player

Flash MP3 Player Without Frames

First, the super simple quick and dirty way. Here's the flash object code you can use to run the mp3player. This code assumes you have the mp3 player installed in your main web folder straight out of the box. You can customize this code to fit your needs. Please note, Flash code has two places where you specify the src variable. Don't forget to change both. Click here to view the Example Flash MP3Player Code.

You can also run the mp3player without frames. So it can sit on any particular web page you would like. The default run is with frames so it lets you browse your site while the music is playing. Without frames is just as simple.

First, since it is on a single web page, you will need to know the name of the song you want to hear. You set the song by passing the src variable into the mp3 player's object code. Just add the code to the flash object tag in your html source. Below is some fancy javascript which does just that. An additional twist here is that the mp3 play will only show itself if a song is specified. Try it out below. Press the play button. The javascript will display the flash mp3 player with the song in the src variable.

SRC:

Prev Question / Next Question / Question Index
What do you think of this Question? Vote Thumbs Up or Thumbs Down. Vote Toes Up for this Item Vote Toes Down for this Item Reputation: 4 / Feedback: 0
Hits:7508
IP:1316
ISP:1236
REF:492
GO LIVE