Isn't CSS wonderful? I found the answer here: http://code.google.com/p/swfobject/wiki/SWFObject_2_0_faq_web_authors
Any general experience reports or comments about SWFObject are still welcome. On Mon, Apr 21, 2008 at 4:09 PM, Richard Rodseth <[EMAIL PROTECTED]> wrote: > I need a simple template for embedding a Flex app such that it takes > up the whole window, no scroll bars, and resizes with the window, and > takes a couple of Flashvars. > > I'm drawn to SWFObject because the wrapper code looks so much cleaner, > but the following does not display at all in Firefox 2.0.0.14 on Mac. > > I'd appreciate any advice on the current best choice for deployment. > > Thanks > - Richard > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> > <head> > <title>SWFObject v2.0 dynamic embed sample page</title> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1" /> > <script type="text/javascript" src="swfobject.js"></script> > <script type="text/javascript"> > var flashvars = { > name1: "Hello", > name2: "world", > name3: "foobar" > }; > var params = {movie:"${swf}.swf", bgcolor:"${bgcolor}", > allowScriptAccess:"sameDomain"}; > var attributes = {}; > swfobject.embedSWF("${swf}.swf", "myContent", "${width}", > "${height}", "9.0.0", "expressInstall.swf", > flashvars,params,attributes); > </script> > </head> > <body> > <div id="myContent" style="width:100%";height:"100%"> > <h1>Alternative content</h1> > <p><a > href="http://www.adobe.com/go/getflashplayer"><img > > src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" > alt="Get Adobe Flash player" /></a></p> > </div> > </body> > </html> >