Free Flash Loop Player
STEP 1
Download and uncompress playerSingleLoopPackage.zip
By downloading this flash music player, you agree to the End-User License Agreement
STEP 2
Open sampleEmbedCode.html in your html editor, copy the embed code provided and paste it into your own html page.
STEP 3
Open loopTemplate.fla with Macromedia Flash MX 2004 or Macromedia Flash 8, replace the sound loop in the library for your own loop in .wav or .aif format and export the swf file.
STEP 4
Change the soundPath parameter in the provided embed code to point to your swf file of choice.
Change the value in red to suit your needs.
so.addVariable("soundPath", "loop.swf");
NOTE 1: Make sure you upload the playerLoop.swf and swfobject.js to your server. Specify the path to these files if they are not in the same folder as the page in which your music player is embedded.
There are two parameters you can modify to customize the flash music player:
overColor
To customize the color of the player, add the line of code below to your embed code and change the value in red. The color must be an hexadecimal color value.
Change the value in red:
so.addVariable("overColor","#000033")
playerSkin
To change the skin of the player, add the line of code below to your embed code and change the value in red. Try skins 1 to 5 and see wich one you like.
Change the value in red:
so.addVariable("playerSkin","1")
Yes. The format used to loop the music is the .swf format. You need
Macromedia Flash MX 2004 or Macromedia Flash 8 software to open the loopTemplate.fla and export your .swf loops.
It is currently impossible to seamlessly loop mp3 files. The mp3 compression algorithm leaves an unspecified amount of silence at the start and end of the file wich makes the format a bad choice for looping. The best way to loop music in flash is to export it in the .swf format.
There are two parameters for the Single Flash Loop Player:
autoPlay
Determines if the loop automatically plays when loaded. The two possible values are "yes" and "no".
Change value in red:
so.addVariable("autoPlay", "yes");
soundPath
This is the path to the .swf file on your server.
Change value in red:
so.addVariable("soundPath", "loop.swf");
The soundPath can be relative or absolute.
Sample absolute path:
so.addVariable("soundPath", "/files/loop.swf");
In this case the .swf file would be located at www.site.com/files/loop.swf
Sample relative path:
so.addVariable("soundPath", "loop.swf");
In this case the .swf file would be located at www.site.com/loop.swf
Embed parameters are variables or settings that are included in the flash music player through the embed code. The lines of code below are an example of embed variables.
so.addVariable("autoPlay", "no");
so.addVariable("soundPath", "loop.swf");
The bitrate represents the quality level of the mp3 compression. A higher bitrate means better quality, but adds weight the the mp3 file.
The bitrate you use when exporting your .swf files depends on your needs, here are some of the common bitrates and their quality levels.
- 16 kbit/s - Minimum (Ideal for voice)
- 32 kbit/s - Intermediate
- 64-96 kbit/s - Recommended
- 128 - 256 kbit/s - Best (CD Quality)
No, the Single Flash Loop Player is designed to play .swf files in loop. The music will start playing once the loop is completely loaded.
The most common problem when integrating the flash music player is the location of the .swf file on your server. If you have copy/pasted the embed code and you don't see the flash music player, it's simply because the web browser is looking for the .swf file at the wrong location. Here is quick checklist for trouble shooting purpose:
| Make sure the playerLoop.swf file is uploaded on your web server and that the path to this file is specified in the embed code provided. |
| Make sure the swfobject.js file is uploaded on your web server and that the path to this file is specified in the embed code provided. |
| Make sure you have at least have Flash Player 7. If not, download it here |
Please send us feedback or questions at customerservice@premiumbeat.com |