4 Replies Latest reply on Feb 16, 2010 2:29 PM by John Blaustein

    Embed Flash slideshow -- which of these ways is best?

    John Blaustein Level 4

      Hi,

       

      I am using SlideShowPro with Lightroom to make Flash slideshows.  The SlideShowPro documentation suggests two different ways to embed the show into HTML pages (see below).  I am too much of a novice at this to understand the difference between the two methods.

       

      I am curious whether those of you here who do understand the difference can comment on whether one method provides any advantages or disadvantages over the other or whether they both accomplish the same thing equally well.

       

      Many thanks!

       

      John

       

       

      METHOD 1:

       

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="770" height="566" hspace="0" vspace="0" align="top" id="FlashID">
              <param name="movie" value="../flash/home/loader.swf" />
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="9.0.45.0" />
              <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
              <param name="expressinstall" value="../../Scripts/expressInstall.swf" />
              <param name="base" value="." />
              <param name="allowFullScreen" value="true" />
              <param name="BGCOLOR" value="#c4c0b4" />
              <param name="SCALE" value="noborder" />
              <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
              <!--[if !IE]>-->
              <object data="../flash/home/loader.swf" type="application/x-shockwave-flash" width="770" height="566" hspace="0" vspace="0" align="top">
                <!--<![endif]-->
                <param name="quality" value="high" />
                <param name="wmode" value="opaque" />
                <param name="swfversion" value="9.0.45.0" />
                <param name="expressinstall" value="../../Scripts/expressInstall.swf" />
                <param name="base" value="." />
                <param name="allowFullScreen" value="true" />
                <param name="BGCOLOR" value="#c4c0b4" />
                <param name="SCALE" value="noborder" />
                <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                <div>
                  <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                  <p><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" width="112" height="33" /></a></p>
                </div>
                <!--[if !IE]>-->
              </object>
              <!--<![endif]-->
            </object>

       

       

      METHOD 2:

       

      <script type="text/javascript" src="http://johnblaustein.com/portfolio/flash/home/js/swfobject.js"></script> language="javascript">
      var flashvars = {
      paramXMLPath: "param.xml",
      initialURL: escape(document.location)
      }
      var params = {
          base: ".",
      bgcolor: "#c4c0b4",
      allowfullscreen: "true"
      }               
      var attributes = {}
      swfobject.embedSWF("http://johnblaustein.com/portfolio/flash/home/loader.swf", "flashcontent", "770", "566", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
      </script>

      <script

       

      <div id="flashcontent">
         <!-- Insert non-Flash player code here -->
      </div> </td>