Incorrect embedding of flash movie - I think I am to blame

I tried through another custom suggestion to use swfobject methos to embed Flash. I, however, don't have to be that smart.

Below is a monster that I encountered, but no movie plays and I can't even tell it apart from the Flash movie when I control it with a mouse click (Mac) ... as if it doesn't even exist.

Any direction as to how I can fix this would be greatly appreciated!

<div id="audioPlayer">
<script type="text/javascript">

var flashvars = {
wimpyApp: "mp3s/wimpy.php",
wimpySkin: "mp3s/skins/skin_transparent.xml",
defaultVisualExt: "jpg"
theVolume: "75"
bufferAudio: "0"
infoDisplayTime: "3"
scrollInfoDisplay: "yes"
startPlayingOnload: "yes"
autoAdvance: "yes"
popUpHelp: "yes"
};
var params = {
embed src="mp3s/wimpy_button.swf"
quality="high"
menu: "false"
loop: "false"
quality: "high"
scale: "noscale"
salign: "lt"
bgcolor: "000000"
wmode: "transparent"
allowScriptAccess: "sameDomain"
};
var attributes = {
id: "myDynamicContent",
name: "myDynamicContent"
};

swfobject.embedSWF("mp3s/wimpy_button.swf", "movie", "250", "140",
"9.0.0","Scripts/expressInstall.swf", flashvars, params, attributes);

</script>

      

+1


a source to share


2 answers


Your objects are missing many commas:

var flashvars = {
wimpyApp: "mp3s/wimpy.php",
wimpySkin: "mp3s/skins/skin_transparent.xml",
defaultVisualExt: "jpg"
theVolume: "75"
bufferAudio: "0"
infoDisplayTime: "3"
scrollInfoDisplay: "yes"
startPlayingOnload: "yes"
autoAdvance: "yes"
popUpHelp: "yes"
};

      

it should be



var flashvars = {
wimpyApp: "mp3s/wimpy.php",
wimpySkin: "mp3s/skins/skin_transparent.xml",
defaultVisualExt: "jpg",
theVolume: "75",
bufferAudio: "0",
infoDisplayTime: "3",
scrollInfoDisplay: "yes",
startPlayingOnload: "yes",
autoAdvance: "yes",
popUpHelp: "yes",
};

      

Also, do you have a div named 'movie'? Did you forget to include swfobject.js?

<script type="text/javascript" src="_js/swfaddress.js"></script>

      

+3


a source


Thanks quoo,

I actually got it to work by downloading the updated wimpy.swf from my site and using it. Find it in the related post here.

I am still using the "twice baked" method because it was already there and now it works ... BUT I am still working on a copy and trying to use this swfobject method.

I put commas in the flash vars as you said and actually my div is called "audioPlayer", so I changed all occurrences of "movie" to this.



I have a js file in the header like:

It is located in the "Scripts" folder.

Still doesn't work :(

0


a source







All Articles