PDA

View Full Version : SWFobject, "wmode","transparent","menu","false"?



GGMcGee
August 28th, 2008, 01:19 AM
Just implemented SWFobject for the first time.

Trying to figure out how to make the background transparent, mand get rid of the menu.

With the system I used before I added in "wmode","transparent","menu","false".

Do I add something similar for the SWFobject system too?

This is the code I'm using in conjunction with Postcard Viewer (http://www.airtightinteractive.com/projects/postcardviewer/):

<script type="text/javascript">
var fo = new FlashObject("viewer.swf", "viewer", "100%", "600", "7", "#FFFFFF");
fo.addParam("quality", "best");
fo.write("flashcontent");
</script>

What do I add in, and where do I add the code needed to remove the menu and make the background transparent?

Cheers

glosrfc
August 28th, 2008, 07:00 AM
Just add additional parameters before you write the object, e.g.
fo.addParam("menu", "false")
fo.addParam("wmode", "transparent")

The parameter options are available here:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701&sliceId=1

GGMcGee
September 3rd, 2008, 10:10 PM
Thanks glosrfc!

You're awesome. :)