views:

264

answers:

1

I have a list of clients taken over from a competitor that went under ;)

Anyway, they supposedly fixed the Flash Wimpy Player on the home page, here's the link but now I am being told it doesn't work again. I am wondering if it's simply an embedding issue, and I would like to learn how to fix it.

Code is below, and it looks like way too much to me:

<div id="audioPlayer">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0','name','wimpy','width','250','height','140','align','center','id','wimpy','src','http://www.islamiccenterofolympia.org/mp3s/wimpy?wimpyApp=http://www.islamiccenterofolympia.org/mp3s/wimpy.php&amp;wimpySkin=http://www.islamiccenterofolympia.org/mp3s/skins/skin_transparent.xml&amp;defaultVisualExt=jpg&amp;theVolume=75&amp;bufferAudio=0&amp;infoDisplayTime=3&amp;scrollInfoDisplay=yes&amp;startPlayingOnload=yes&amp;autoAdvance=yes&amp;popUpHelp=yes','loop','false','menu','false','quality','high','wmode','transparent','scale','noscale','salign','lt','bgcolor','000000','allowscriptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','http://www.islamiccenterofolympia.org/mp3s/wimpy?wimpyApp=http://www.islamiccenterofolympia.org/mp3s/wimpy.php&amp;wimpySkin=http://www.islamiccenterofolympia.org/mp3s/skins/skin_transparent.xml&amp;defaultVisualExt=jpg&amp;theVolume=75&amp;bufferAudio=0&amp;infoDisplayTime=3&amp;scrollInfoDisplay=yes&amp;startPlayingOnload=yes&amp;autoAdvance=yes&amp;popUpHelp=yes' ); //end AC code
        </script>
        <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" name="wimpy" width="250" height="140" align="center" id="wimpy">
          <param name="allowScriptAccess" value="sameDomain" />
          <param name="movie" value="http://www.islamiccenterofolympia.org/mp3s/wimpy_button.swf?wimpyApp=http://www.islamiccenterofolympia.org/mp3s/wimpy.php&amp;wimpySkin=http://www.islamiccenterofolympia.org/mp3s/skins/skin_transparent.xml&amp;defaultVisualExt=jpg&amp;theVolume=75&amp;bufferAudio=0&amp;infoDisplayTime=3&amp;scrollInfoDisplay=yes&amp;startPlayingOnload=yes&amp;autoAdvance=yes&amp;popUpHelp=yes" />
          <param name="loop" value="false" />
          <param name="menu" value="false" />
          <param name="quality" value="high" />
          <param name="scale" value="noscale" />
          <param name="salign" value="lt" />
          <param name="bgcolor" value="000000" />
          <param name="wmode" value="transparent" />
          <embed src="http://www.islamiccenterofolympia.org/mp3s/wimpy_button.swf?wimpyApp=http://www.islamiccenterofolympia.org/mp3s/wimpy.php&amp;wimpySkin=http://www.islamiccenterofolympia.org/mp3s/skins/skin_transparent.xml&amp;defaultVisualExt=jpg&amp;theVolume=75&amp;bufferAudio=0&amp;infoDisplayTime=3&amp;scrollInfoDisplay=yes&amp;startPlayingOnload=yes&amp;autoAdvance=yes&amp;popUpHelp=yes" loop="False" menu="false" quality="high" wmode="transparent" width="250" height="140" scale="noscale" salign="lt" name="wimpy" align="center" bgcolor="#FFFFFF" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>
        </object>
        </noscript>
      </div>
A: 

Try swfobject, it's the best way to embed a flash, in my opinion.

<script type="text/javascript">

var flashvars = {
  name1: "hello",
  name2: "world",
  name3: "foobar"
};
var params = {
  menu: "false"
};
var attributes = {
  id: "myDynamicContent",
  name: "myDynamicContent"
};

swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0","expressInstall.swf", flashvars, params, attributes);

</script>
marcgg
Thanks Marc, how would I implement that into MY code?