Not dead certain, but I believe that attributes.id should not be set to maingal, but rather frontGallery? Unlike version 1.5 which placed the div/object inside a designated div, version 2.x replaces the div entirely, which IIRC means any styles and other things get wiped out, which might affect things in FF diffrently than in IE. If you are requiring a different id due to some sort of styling, then you can create a wrapper div that would look like:
<div id="frontGallery"> <div id="mainGal"> blah blah alt content </div> </div> Try it and see if that helps. VP On Fri, May 22, 2009 at 1:01 AM, Andy789 <[email protected]> wrote: > > 1. swf movie is loaded perfectly (all browsers) with > a) old swfobject > b) standard object generated code via Flash CS4 > > 2) when it is loaded via SWFObject2, it shows a blank screen in > Firefox, > but works fine in IE. Here is my code: > > <!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></title> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1" /> > <script type="text/javascript" > src="js/swfobject.js"></script> > <script type="text/javascript"> > var flashvars = {menu: "false", scale: "noscale", > allowFullScreen: > "true"}; > var params = {}; > var attributes = {}; > attributes.id = "maingal"; > swfobject.embedSWF("preview.swf", "frontGallery", > "100%", "100%", > "8.0.0", false, flashvars, params, attributes); > </script> > </head> > <body> > <div id="frontGallery"> > <a href="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/%0Aget_flash_player.gif> > " > alt="Get Adobe Flash player" /> > </a> > </div> > </body> > </html> > > > Any ideas of what could cause this problem? > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
