Flash mp3 buttons

flash mp3 audio buttons ....

The following buttons are used within PHP-eSeller as a method of previewing mp3 music. Note that it can only be used with mp3 formats as that is a restriction of Flash.

The flash object is placed on the web page as follows :

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=6,0,0,0" width="25" height="25" id="mp3button" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="mp3button_1.swf" /> <param name="quality" value="high" /> <param name="FlashVars"
value="theFile=http%3A%2F%2Fwww.withinweb.com%2Fdemographics%2Fmp3clips%2Fmp3_01.mp3" /> <param name="bgcolor" value="#ffffff" /> <param name="wmode" value="transparent" /> <embed src="mp3button_1.swf" FlashVars="theFile=http%3A%2F%2Fwww.withinweb.com%2Fdemographics%2Fmp3clips%2Fmp3_01.mp3" quality="high" bgcolor="#ffffff" width="25" height="25" name="mp3button" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>

The extra parameter is :

<param name="FlashVars" value="theFile=file%2Emp3" />

where value contains the url of the mp3 file in url encoded format.

If the mp3 file is on the same server as the button, then you do not need to enter the full url.

Url encoding is described in http://www.albionresearch.com/misc/urlencode.php

Example, the url

http://www.test.com/mp3/file.mp3

becomes

http%3A%2F%2Fwww.test.com%2Fmp3%2Ffile.mp3

Note that the parameter 'wmode' has been set to transparent to allow the background of the page to show through.

Download the zip file by clicking here.

Download

Download the zip file by clicking here.