I tried to switch to SWFObject 2.0 but I was not be able to get it work so I
switch back to 1.5

Something weird is happening with 2.0, and it's not working as expected.

anyone knows why 2.0 it's not valid?

Thanks for point this issue


Best.

C.


2008/4/22, Richard Rodseth <[EMAIL PROTECTED]>:
>
>   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>
>  
>



-- 
::| Carlos Rovira
::| http://www.carlosrovira.com
::| http://formacion.carlosrovira.com/
::| http://www.madeinflex.com

Reply via email to