I had found issues utilizing the Deconcept site implementation, the original creators of SWFObject. My issue arose when trying to add variables and transparency to the object with version 2. This was their suggestion:
<div id="flashcontent">
This content is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
so.write("flashcontent");
</script>For some reason I was getting a JavaScript error. The implementation that worked for me:
<script type="text/javascript">
var flashvars = {
name1: "hello",
name2: "world",
name3: "foobar"
};
var params = {
scale = "noscale";
wmode = "transparent";
};
var attributes = {
id: "myDynamicContent",
name: "myDynamicContent"
};
swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0",
"expressInstall.swf", flashvars, params, attributes);
</script>I found the better code at these locations:
- http://livedocs.adobe.com/flex/gumbo/html/WS2db454920e96a9e51e63e3d11c0b...
- http://code.google.com/p/swfobject/wiki/documentation
For some reason the example code is not up front and center as it should be.
FlashVars, SWFObject 2.2, addParam.


Problem with code
Hi there, For some reason the transparency on my flash file does not work when I use swf object 2.2. Do you have any suggestions? Here is the page:http://d554778.u67.duvalldesigns.com/Any help or ideas would be greatly appreciated.
link not working
Jon, It looks like there is an issue with the link. If you could provide the new location we may be able to help.
Post new comment