How to add a flash MP3 player with variables
-
Hi!
I’m trying to add a flash MP3 player (https://www.flabell.com/flash/Flash-Mp3-Player-29) to a single wordpress page.
Simply embedding the flash file doesn’t work (using SfwObj plugin), I guess I have to add the script code to one of the template pages, but I’m pretty lost for where to add/what code to add. Help?!!The html embed code that comes with the player (showing how the variables are passed);
<html>
<head>
<title>Flash Mp3 Player</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" src="js/swfobject.js"></script><script type="text/javascript">
var stageW = 900;
var stageH = 306;
var cacheBuster = Date.parse(new Date());var flashvars = {};
var params = {};params.bgcolor = "#ffffff";
params.allowfullscreen = "true";flashvars.stageW = stageW;
flashvars.stageH = stageH;flashvars.pathToFiles = "player/";
flashvars.settingsPath = "https://www.livewirestudios.com.au/site/extras/mp3/xml/settings.xml";
flashvars.xmlPath = "https://www.livewirestudios.com.au/site/extras/mp3/xml//mp3_player.xml";flashvars.keepSelected = "t";
flashvars.selectedWindow = "4";
flashvars.slideshow = "t";flashvars.imageWidth = "140";
flashvars.imageHeight = "200";swfobject.embedSWF("preview.swf?t="+cacheBuster, "myContent", stageW, stageH, "9.0.124", "js/expressInstall.swf", flashvars, params);
</script>
</head>
";<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="yes">
<table width="100%" height="100%">
<tr>
<td align="center"><div id="myContent">
<p>
<img src="https://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
</p>
</div></td>
</tr>
</table></body>
</html>
- The topic ‘How to add a flash MP3 player with variables’ is closed to new replies.