15 Replies Latest reply on May 20, 2013 12:27 PM by kglad

    Display on IE compatibility view

    Hec63

      Hi,

      I have a scaling problem, with compatibility view it is possible to fix the problem, but user dont know that.

      is there a solution to avoid the scaling problem.

       

       

      With IE8 and more

      Capture.PNG

      Firefox

      CaptureB.PNG

        • 1. Re: Display on IE compatibility view
          kglad Adobe Community Professional & MVP

          is that an index.html page embedding your swf?

           

          if yes, what are you html publish settings or, copy and paste your html code here.

          • 2. Re: Display on IE compatibility view
            Hec63 Level 1

             

             

             

             

             

             

             

            is that an index.html page embedding your swf?

             

            if yes, what are you html publish settings or, copy and paste your html code here.

             

            <!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="fr" xml:lang="fr">

                <head>

                    <title>EUROSTYLE</title>

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

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

                    <script type="text/javascript">

                        <!-- Adobe recommande aux développeurs d'utiliser SWFObject2 pour la détection de Flash Player. -->

                        <!-- Pour plus d'informations, consultez la page SWFObject du code Google (http://code.google.com/p/swfobject/). -->

                        <!-- Pour obtenir de plus amples informations, consultez le site Web Adobe Developer Connection sous "Détection des versions Flash Player et incorporation de fichiers SWF à l'objet SWF 2" Detecting Flash Player versions and embedding SWF files with SWFObject 2" -->

                        <!-- Sélectionnez la version minimale requise de Flash Player ou 0 si vous ne souhaitez pas activer la détection de version -->

                        var swfVersionStr = "11.2.0";

                        <!-- xiSwfUrlStr peut être utilisé pour définir un fichier SWF d'installation expresse. -->

                        var xiSwfUrlStr = "";

                        var flashvars = {};

                        var params = {};

                        params.quality = "best";

                        params.bgcolor = "#666666";

                        params.play = "false";

                        params.loop = "true";

                        params.wmode = "direct";

                        params.scale = "noscale";

                        params.menu = "false";

                        params.devicefont = "false";

                        params.salign = "";

                        params.allowscriptaccess = "sameDomain";

                        params.allowFullScreen = "true";

                        var attributes = {};

                        attributes.id = "EUROSTYLE";

                        attributes.name = "EUROSTYLE";

                        attributes.align = "top";

                        swfobject.createCSS("html", "height:100%; background-color: #666666;");

                        swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;");

                       

                                    var d = new Date();

                        swfobject.embedSWF(

                            "EUROSTYLE.swf?bogus="+d.getTime(),"flashContent",

                            "100%", "100%",

                            swfVersionStr, xiSwfUrlStr,

                            flashvars, params, attributes);

             

             

             

             

                    </script>

                </head>

                <body>

                    <!-- La méthode d'incorporation dynamique de l'objet SWF remplace ce contenu HTML alternatif par le contenu Flash lorsque les plug-ins JavaScript et Flash sont suffisamment pris en charge. -->

                    <div id="flashContent">

                        <a href="http://www.adobe.com/go/getflash">

                            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Obtenir Adobe Flash Player" />

                        </a>

                        <p>Cette page requiert Flash Player version 11.2.0 ou ultérieure.</p>

                    </div>

                </body>

             

            </html>

            • 3. Re: Display on IE compatibility view
              kglad Adobe Community Professional & MVP

              remove (or comment out) these two lines and retest:

               

                     swfobject.createCSS("html", "height:100%; background-color: #666666;");

                          swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;");

              • 4. Re: Display on IE compatibility view
                Hec63 Level 1

                Hi,

                No luck same thing.

                If I go on the swf without htlm page it is working ok.

                • 5. Re: Display on IE compatibility view
                  kglad Adobe Community Professional & MVP

                  the problem is your embed code.

                   

                  either let flash publish your html page or post a link to your embedding html page (after making the above correction).

                  • 6. Re: Display on IE compatibility view
                    Hec63 Level 1

                    That is publish by flash, I just add the ?bogus="+d.getTime(), to avoid caching.

                    • 7. Re: Display on IE compatibility view
                      kglad Adobe Community Professional & MVP

                      what flash version is that?

                      • 8. Re: Display on IE compatibility view
                        Hec63 Level 1

                        CS6

                        If  I change   

                        "100%", "100%", to  "1280", "750" it works

                        • 9. Re: Display on IE compatibility view
                          kglad Adobe Community Professional & MVP

                          that's not a standard english version template.  i don't know if adobe uses a different french language html template or if you're using a problematic template.

                          • 10. Re: Display on IE compatibility view
                            Hec63 Level 1

                            Hi, this is standard is there something different in English?

                             

                            swfobject.createCSS("html", "height:100%; background-color: #666666;");

                            swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;");

                            swfobject.embedSWF( "EUROSTYLE.swf?bogus="+d.getTime(),"flashContent", "100%", "100%", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes);

                             

                            by reserch IE8,IE9, IE10  read 100% height of nothing and use defauld heigh 300px

                             

                            http://stackoverflow.com/questions/4772396/ie8-height-100-bug

                             

                            There must be a way to set a dymamic height 100% ,I'll try to figure this,

                             

                            http://www.w3.org/TR/CSS21/visufx.html#overflow

                            • 11. Re: Display on IE compatibility view
                              kglad Adobe Community Professional & MVP

                              yes, this is the english standard html template:

                               

                              <!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>test4</title>

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

                                      <style type="text/css" media="screen">

                                      html, body { height:100%; background-color: #ffffff;}

                                      body { margin:0; padding:0; overflow:hidden; }

                                      #flashContent { width:100%; height:100%; }

                                      </style>

                                  </head>

                                  <body>

                                      <div id="flashContent">

                                          <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" id="test4" align="middle">

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

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

                                              <param name="bgcolor" value="#ffffff" />

                                              <param name="play" value="true" />

                                              <param name="loop" value="true" />

                                              <param name="wmode" value="window" />

                                              <param name="scale" value="showall" />

                                              <param name="menu" value="true" />

                                              <param name="devicefont" value="false" />

                                              <param name="salign" value="" />

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

                                              <!--[if !IE]>-->

                                              <object type="application/x-shockwave-flash" data="test4.swf" width="550" height="400">

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

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

                                                  <param name="bgcolor" value="#ffffff" />

                                                  <param name="play" value="true" />

                                                  <param name="loop" value="true" />

                                                  <param name="wmode" value="window" />

                                                  <param name="scale" value="showall" />

                                                  <param name="menu" value="true" />

                                                  <param name="devicefont" value="false" />

                                                  <param name="salign" value="" />

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

                                              <!--<![endif]-->

                                                  <a href="http://www.adobe.com/go/getflash">

                                                      <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />

                                                  </a>

                                              <!--[if !IE]>-->

                                              </object>

                                              <!--<![endif]-->

                                          </object>

                                      </div>

                                  </body>

                              </html>

                              1 person found this helpful
                              • 12. Re: Display on IE compatibility view
                                Hec63 Level 1

                                Hi,

                                 

                                I tried your template and it works for displaying, but  stage3D doesn't work.

                                 

                                I add the style type to my template

                                      <style type="text/css" media="screen">

                                        html, body { height:100%; background-color: #ffffff;}

                                        body { margin:0; padding:0; overflow:hidden; }

                                        #flashContent { width:100%; height:100%; }

                                        </style>

                                And it's working.

                                 

                                I'm not and html expert but my  template use embedswf and you use classic, is it a matter of the stage3D?

                                I made a test with no stage3D and I have same template as you.

                                • 13. Re: Display on IE compatibility view
                                  kglad Adobe Community Professional & MVP

                                  change wmode to "direct" to use stage3d.

                                  1 person found this helpful
                                  • 14. Re: Display on IE compatibility view
                                    Hec63 Level 1

                                    Yah, It's working, so there is another setting  in CS6  making the template different.

                                    • 15. Re: Display on IE compatibility view
                                      kglad Adobe Community Professional & MVP

                                      no, you would use the same (standard) html template but on the html publish setting's panel, select window mode: direct.