thuansaritasa / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

Cannot load flash in FF (IE works perfectly) #314

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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"
alt="Get Adobe Flash player" />
            </a>
        </div>
    </body>
</html>

Original issue reported on code.google.com by e...@abcstudio.com.au on 22 May 2009 at 7:57

GoogleCodeExporter commented 9 years ago
Please read our FAQ Q1: http://code.google.com/p/swfobject/wiki/faq

Original comment by bobbyvandersluis on 22 May 2009 at 8:19

GoogleCodeExporter commented 9 years ago
Yes, changing the width/height to absolute values has fixed the problem. Thank 
you

Original comment by e...@abcstudio.com.au on 22 May 2009 at 11:27