• Resolved josh-caple

    (@josh-caple)


    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>

Viewing 3 replies - 1 through 3 (of 3 total)
  • the problem is with the player it self…

    use i frames if u want this player some thing like this

    <iframe src ="https://karomasti.com/patalu/deploy/kedi.html" width="500" height="320" frameborder="0" scrolling="no" >
      <p>Your browser does not support iframes.</p>
    </iframe>

    i am using the same for my blog ..it cool and fast

    but the pain is that u shld manually do every thing , creating a xml file and html file and then putting it in i frames..

    but it worth to take the pain

    Thread Starter josh-caple

    (@josh-caple)

    Awesome, thanks!

    my pleasure..mark the topic solved buddy

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add a flash MP3 player with variables’ is closed to new replies.