Very helpful, thanks!

On Dec 3, 1:55 am, "Aran Rhee" <[EMAIL PROTECTED]> wrote:
> The below code is looking good to me. Any Flash parameters you want to add
> should go into the params object as you have it. If you don't want to pass
> any options in the params or attributes objects, you can either pass empty
> objects:
>
> swfobject.embedSWF("flash/home_timeline.swf", "flash_timeline","895", "658",
> "9.0.0", "flash/expressInstall.swf", flashvars, {}, {});
>
> or leave them off the method call:
>
> swfobject.embedSWF("flash/home_timeline.swf", "flash_timeline","895", "658",
> "9.0.0", "flash/expressInstall.swf", flashvars);
>
> If you wanted to pass a params object, but not a preceeding object like
> flashvars, then again, pass and empty object to keep the order of the
> parameters correct:
>
> swfobject.embedSWF("flash/home_timeline.swf", "flash_timeline","895", "658",
> "9.0.0", "flash/expressInstall.swf", {}, params, attributes);
>
> The important concept is to ensure you are giving the expected values in the
> correct order.
>
> Hope this helps,
> Aran
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
>
> Behalf Of 66chevelle
> Sent: Wednesday, 3 December 2008 5:41 PM
> To: SWFObject
> Subject: Trying to Understand Transparency in SWFObject 2.1
>
> Hello,
>
> First time using the new version of swfobject and I'm still trying to
> get accustomed to it. I'm using the dynamic method to add Flash to my
> webpage and want to add wmode transparent to the following code:
>
> <script type="text/javascript" src="scripts/swfobject.js"></script>
> <script type="text/javascript">
>         swfobject.embedSWF("flash/header.swf", "flash-header", "900", "300",
> "9.0.0", "flash/expressInstall.swf");
> </script>
>
> I've tried adding the following, which seems to work, but I'm not sure
> if this is correctly written or why it breaks if I try removing the
> empty flashvars or attributes:
>
> <script type="text/javascript" src="scripts/swfobject.js"></script>
>         <script type="text/javascript">
>                 var flashvars = {};
>                 var params = {wmode: "transparent"};
>                 var attributes = {};
>                 swfobject.embedSWF("flash/home_timeline.swf",
> "flash_timeline",
> "895", "658", "9.0.0", "flash/expressInstall.swf", flashvars, params,
> attributes);
>         </script>
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to