6 Replies Latest reply on Nov 17, 2011 8:05 AM by seeker7805

    Flash not running in FF but runs in IE and Chrome

    seeker7805 Level 1

      Hello:

       

      I am having an issue with Flash not running in Firefox but it is running in IE and Chrome. The main url is http://www.mcafee.com/us/campaign/network-security/virtualized-data-center.html on which there is a section called "ROI Calculator". The download button links to a flash program which opens up

      in IE and Chrome but does not open in Firefox. I am using windows 7 professional and Firefox 8. Here is the code for the page http://www.mcafee.com/us/resources/roi/brocade-mcafee-tco/roi-brocade-mcafee-tco.html :

       

      <!-- saved from url=(0014)about:internet -->

      <html lang="en">

       

      <!--

      Smart developers always View Source.

       

      This application was built using Adobe Flex, an open source framework

      for building rich Internet applications that get delivered via the

      Flash Player or to desktops via Adobe AIR.

       

      Learn more about Flex at http://flex.org

      // -->

       

      <head>

      <meta name="robots" content="noindex,nofollow">

      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

      <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

      <script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>

      <script type="text/javascript" src="swfobject.js"></script>

      <script type="text/javascript">

      function openAddThisWindow(v1,v2,url)

              {

                      return addthis_open(this, 'email' );

              }

       

      </script>

      <!--  BEGIN Browser History required section -->

      <link rel="stylesheet" type="text/css" href="history/history.css" />

      <!--  END Browser History required section -->

       

      <title></title>

      <script src="AC_OETags.js" language="javascript"></script>

       

      <!--  BEGIN Browser History required section -->

      <script src="history/history.js" language="javascript"></script>

      <!--  END Browser History required section -->

       

      <style>

      body { margin: 0px; overflow:hidden }

      </style>

      <script language="JavaScript" type="text/javascript">

      <!--

      // -----------------------------------------------------------------------------

      // Globals

      // Major version of Flash required

      var requiredMajorVersion = 9;

      // Minor version of Flash required

      var requiredMinorVersion = 0;

      // Minor version of Flash required

      var requiredRevision = 124;

      // -----------------------------------------------------------------------------

      // -->

      </script>

      </head>

       

      <body scroll="no">

       

      <script language="JavaScript" type="text/javascript">

      <!--

       

       

      // Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)

      var hasProductInstall = DetectFlashVer(6, 0, 65);

       

      // Version check based upon the values defined in globals

      var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

       

      if ( hasProductInstall && !hasRequestedVersion ) {

          // DO NOT MODIFY THE FOLLOWING FOUR LINES

          // Location visited after installation is complete if installation is required

          var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";

          var MMredirectURL = window.location;

          document.title = document.title.slice(0, 47) + " - Flash Player Installation";

          var MMdoctitle = document.title;

       

          AC_FL_RunContent(

              "src", "playerProductInstall",

              "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"" ,

              "width", "100%",

              "height", "100%",

              "align", "middle",

              "id", "Brocade_ROI",

              "quality", "high",

              "bgcolor", "#FFFFFF",

              "name", "Brocade_ROI",

              "allowScriptAccess","sameDomain",

              "type", "application/x-shockwave-flash",

              "pluginspage", "http://www.adobe.com/go/getflashplayer"

          );

      } else if (hasRequestedVersion) {

          // if we've detected an acceptable version

          // embed the Flash Content SWF when all tests are passed

          AC_FL_RunContent(

                  "src", "Brocade_ROI",

                  "width", "100%",

                  "height", "100%",

                  "align", "middle",

                  "id", "Brocade_ROI",

                  "quality", "high",

                  "bgcolor", "#FFFFFF",

                  "name", "Brocade_ROI",

                  "allowScriptAccess","sameDomain",

                  "type", "application/x-shockwave-flash",

                  "pluginspage", "http://www.adobe.com/go/getflashplayer"

          );

        } else {  // flash is too old or we can't detect the plugin

          var alternateContent = 'Alternate HTML content should be placed here. '

            + 'This content requires the Adobe Flash Player. '

             + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';

          document.write(alternateContent);  // insert non-flash content

        }

      // -->

      </script>

      <noscript>

            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

                  id="Brocade_ROI" width="100%" height="100%"

                  codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">

                  <param name="movie" value="Brocade_ROI.swf" />

                  <param name="quality" value="high" />

                  <param name="bgcolor" value="#869ca7" />

                  <param name="allowScriptAccess" value="sameDomain" />

                  <embed src="Brocade_ROI.swf" quality="high" bgcolor="#869ca7" width="100%" height="100%" name="Brocade_ROI" align="middle" play="true" loop="false"            quality="high" allowScriptAccess="sameDomain" type"application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed>

                 

          </object>

      </noscript>

      <!-- SiteCatalyst code version: H.21. -->

      <script language="javascript" type="text/javascript" src="http://www.mcafee.com/common/js/s_code-20110804.js"></script>

      <script language="javascript" type="text/javascript">

          s.pageName="corp:en-us:direct:resources:roi:brocade_mcafee_tco";

          s.pageName=s.pageName.toLowerCase();

          s.channel="corp:en-us:direct:resources:roi";

          s.eVar21=s.channel=s.channel.toLowerCase();

          s.eVar22="corp:en-us:direct:resources:roi:brocade_mcafee_tco";

          s.prop1=s.eVar22=s.eVar22.toLowerCase();

          s.events="event1";

          s.prop4=s.eVar4="us";

          s.prop5=s.eVar5="en-us";

          s.prop7=s.eVar7="NA";

          s.prop6=s.eVar6="direct";

       

      /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/

      var s_code=s.t();if(s_code)document.write(s_code)</script>

      <!-- End SiteCatalyst code version: H.21. -->

       

      </body>

      </html>

       

      Thanks in advance for your help.

        • 1. Re: Flash not running in FF but runs in IE and Chrome
          Peter Celuch Level 4

          Too much text :/ I hate generated source - something always goes wrong and you never know what the hell

          What about embedding it yourself?

          Create empty HTML file, download swfobject.js: http://code.google.com/p/swfobject/downloads/list

           

          And use this block of code. Of course, change name of swf file, width and height. Unpack swfobject.js right next to the html file.

           

          <!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>SWFObject dynamic embed - step 3</title>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              <script type="text/javascript" src="swfobject.js"></script>
              
              <script type="text/javascript">
              swfobject.embedSWF("myContent.swf", "myContent", "800", "600", "9.0.0");
              </script>
          
            </head>
            <body>
              <div id="myContent">
                <p>Alternative content</p>
              </div>
            </body>
          </html>
          
          1 person found this helpful
          • 2. Re: Flash not running in FF but runs in IE and Chrome
            seeker7805 Level 1

            Thanks Peter for your help.

             

            One of the designers remembered an issue with <noscript></noscript> tags, and when she removed the <noscript></noscript> tags, the Flash program would run in Firefox 8, even though it runs in IE and Chrome with the <noscript> tags.

             

            Regards,

            seeker

            • 3. Re: Flash not running in FF but runs in IE and Chrome
              Peter Celuch Level 4

              If you use swfobject you don't have to worry with those things. Everything inside <div id="myContent"> acts like a <noscript> or alternate content and works in all browsers. Once the user has JS, it is automatically replaced with the flash. All w3c valid and functional. This few lines I pasted do the same job as milion lines you pasted. There's really nothing to think about.

               

              Download this zip: http://code.google.com/p/swfobject/downloads/detail?name=swfobject_2_2.zip&can=2&q=

               

              There are also examples and flashplayer version control. If user has old flashplayer, he will be prompted to install a new one, rigth on your page - no redirects (expressInstall.swf). It's the best flash embedding technique as far as I know and it's widely used.

              • 4. Re: Flash not running in FF but runs in IE and Chrome
                seeker7805 Level 1

                Thanks Peter for your answer. It turns out that we also have to test for earlier versions of Firefox and it appears that removing the noscript tags does not make Flash work in the older Firefox browsers. I am not certain that I can make the changes you suggest above. I will try in a standalone version, and see if my team will accept that.

                 

                Is there another way to do this if the team says we cannot implement this approach?

                 

                Please let me know.

                 

                I greatly appreciate your input.

                 

                Regards,

                seeker

                • 5. Re: Flash not running in FF but runs in IE and Chrome
                  Peter Celuch Level 4

                  I don't know about other good way. But I don't see why you couldn't use this solution. It's the most easy and ellegant solution I ever saw for embedding flash. And it's really really wide spread. Just open some mega cool site with flash from the biggest players and watch in Firebug what files are loading.. and you'll see swfobject.as most of the time. To use it, you really type only this line of code: swfobject.embedSWF(myContent.swf, myContent, 800, 600, 9.0.0); and baam! you have flash on your site which takes care of users without javascript, and users with old flashplayer.

                  • 6. Re: Flash not running in FF but runs in IE and Chrome
                    seeker7805 Level 1

                    Hi Peter:

                     

                    Thanks for your help. I have implemented this solution on my project. However, some other members of the team have a question on how to access flash objects if they are sitting on another domain. Do you have an example of that? Also they would like to contact you via email if possible. My email is seeker7805@gmail.com.

                     

                    Thanks Peter!

                     

                    Regards,

                    seeker