@Aran
Hi Aran,
Thanks for the tips. I have implemented your steps and w ehave run
numerous tests now and it has now come down to either a DNN-SWFObject
loading multiple swf files on a page or a Firefox bug.
Here's the outcome we need:
Two swf files on one page:
* 1. Header.swf: which holds the nav and some bling animation.
* 2. Map.swf: which has different provinces of the country
highlighted on rollover. The active province is highlighted by
reading the URL via Javascript and then loaded into the Map.swf
via FlashVars.
In all of our other tests in other browsers, the scenario works very
well but in Firefox 3.5.3 The swf files refuse to show.
We have stripped this test down to the bare minimum, one html page
scenario and embedding it the same way using SWFObject 2.2 and this
works in Firefox. When it is uploaded in DNN, the swf files refuse to show.
Could it be that there is a clash of scripts somewhere? And if so, what
are the possible steps I can take to debug this?
Many thanks,
James
Aran Rhee wrote:
> @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]
> <mailto:[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]
>> <mailto:[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 <http://www.sixfoot.co.za>
>
>
>
>
>
> >
--
*James van der Hoven*
082.851.2724
www.sixfoot.co.za <http://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
-~----------~----~----~----~------~----~------~--~---