@James.
Your flashvars don't need to be local to a script block. If you want to set
them up globally before your embedSWF() calls, then you can do that too.
Also, you don't need seperate script blocks for each embed, they can be
combined. e.g
script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var fvars = { name1: "hello", name2: "world", name3: "foobar" }
swfobject.embedSWF("base.swf", "Header", "100%", "488", "8.0.0",
"expressInstall.swf");
swfobject.embedSWF("map.swf", "Map", "350", "350", "8.0.0",
"expressInstall.swf", fvars , { menu: "false" }, { id: "myDynamicContent",
name: "myDynamicContent" });
</script>
Aran
On Thu, Oct 8, 2009 at 6:57 AM, James <[email protected]> wrote:
> Hi Philip,
>
> Thanks for sending these test pages onto me.
>
> It seems that I need to embed my swf files like this if I am going to use
> FlashVars:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"<http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>
> >
> <html xmlns="http://www.w3.org/1999/xhtml"
> <http://www.w3.org/1999/xhtml>lang="en" xml:lang="en">
> <head>
> <title></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">
> swfobject.embedSWF("base.swf", "Header", "100%", "488",
> "8.0.0", "expressInstall.swf");
> </script>
>
> <script type="text/javascript">
> swfobject.embedSWF("map.swf", "Map", "350", "350", "8.0.0",
> "expressInstall.swf", { name1: "hello", name2: "world", name3: "foobar" }, {
> menu: "false" }, { id: "myDynamicContent", name: "myDynamicContent" });
> </script>
>
> </head>
> <body style="background-color:#000000">
>
> <div id="Header">
> <a
> href="http://www.adobe.com/go/getflashplayer"<http://www.adobe.com/go/getflashplayer>
> >
> <img src=
> "http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"<http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif>alt="Get
> Adobe Flash player" />
> </a>
> </div>
>
>
> <div id="Map">
> <a
> href="http://www.adobe.com/go/getflashplayer"<http://www.adobe.com/go/getflashplayer>
> >
> <img src=
> "http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"<http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif>alt="Get
> Adobe Flash player" />
> </a>
> </div>
>
>
> </body>
> </html>
>
> Is this the case? Is the correct way of embedding multiple swf files if I
> want to use FlashVars too?
>
> Many thanks!
>
>
>
> Philip Hutchison wrote:
>
> bobby has examples for embedding multiple SWFs here:
>
> http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/
>
>
>
> On Wed, Oct 7, 2009 at 2:53 AM, skynarc <[email protected]> wrote:
>
>>
>> I have stripped my example down to the bare bones to show multiple swf
>> files on one HTML page using swfobject and I am now convinced there is
>> an issue with Firefox 3.x
>>
>> I have followed all the steps, used the generator and generally tried
>> everything short of trimming the queen's pubic hair with nail clipper!
>>
>> If someone has an answer and some examples, I would appreciate the
>> help.
>>
>> Thanks!
>>
>>
>>
>
>
>
> --
> *James van der Hoven* 082.851.2724
> www.sixfoot.co.za
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---