3 Replies Latest reply on May 31, 2010 12:49 AM by hans-g.

    embedding a .swf file into html page

    student60

      I am creating an xhtml splash page. Into this I need to place a button which I have created from flash, and is now a swf file. I have been advised to use Dreamweaver to get the code for this. Now when I view the page, it all looks fine BUT the button will not work. Here is the code.  What am I doing wrong? personally I cannot see a link back to my homepage which is in the same direcory and is where I wish the enter button to take me.

       

      <h5 align="center">Special offer trial box from a low $20
        <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,1,1,0" width="75" height="25">
          <param name="src" value="media/enterButton.swf"/>
          <embed src="media/enterButton.swf" pluginspage="http://www.adobe.com/shockwave/download/" width="75" height="25"></embed>
        </object>
      </h5>

        • 1. Re: embedding a .swf file into html page
          hans-g. Adobe Community Professional & MVP

          Hi,

           

          approach (translated from my German DW): Insert -> Media -> swf. After that your "h5" looks (in my German DW) like that:

           

          <h5 align="center">Special offer trial box from a low $20
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="130" height="45" id="FlashID" title="enterButton">
              <param name="movie" value="media/enterButton.sw" />
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <!-- Dieses param-Tag fordert Benutzer von Flash Player 6.0 r65 und höher auf, die aktuelle Version von Flash Player herunterzuladen. Wenn Sie nicht wünschen, dass die Benutzer diese Aufforderung sehen, löschen Sie dieses Tag. -->
              <param name="expressinstall" value="../Scripts/expressInstall.swf" />
              <!-- Das nächste Objekt-Tag ist für Nicht-IE-Browser vorgesehen. Blenden Sie es daher mit IECC in IE aus. -->
              <!--[if !IE]>-->
              <object type="application/x-shockwave-flash" data="media/enterButton.sw" width="130" height="45">
                <!--<![endif]-->
                <param name="quality" value="high" />
                <param name="wmode" value="opaque" />
                <param name="swfversion" value="6.0.65.0" />
                <param name="expressinstall" value="../Scripts/expressInstall.swf" />
                <!-- Im Browser wird für Benutzer von Flash Player 6.0 und älteren Versionen der folgende alternative Inhalt angezeigt. -->
                <div>
                  <h4>Für den Inhalt dieser Seite ist eine neuere Version von Adobe Flash Player erforderlich.</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="Adobe Flash Player herunterladen" width="112" height="33" /></a></p>
                </div>
                <!--[if !IE]>-->
              </object>
              <!--<![endif]-->
            </object>
          </h5>

           

          No fear of the German words here, DW automatically takes your language.

           

          Hans-G.

           

          P.S.

          I tried that here: http://www.goldschmiede-blumberg.de/AdobTest/musik.php

          • 2. Re: embedding a .swf file into html page
            student60 Level 1

            Thank You, The button now works.

            • 3. Re: embedding a .swf file into html page
              hans-g. Adobe Community Professional & MVP

              Hi,

               

              fine, good luck furthermore!Hans-G.