1 Reply Latest reply on Feb 9, 2010 2:59 PM by rmack350

    Inserting swfs in ASP include files, CS4?

    rmack350 Level 1

      I'm having a problem inserting SWFs into ASP include files in CS4 and am wondering if there's a solution other than going back to CS3.

       

      I've been adding pages to this site on a daily basis and at some point a few years ago we needed to start using ASP includes. The C-wrapper is in the ASP file and the content is in the included file.

       

      Unfortunately, the way CS4 insists on adding SWFs leads to broken pages. The error in Firefox is:

       

      Active Server Pages error 'ASP 0139'

      Nested Object

      /MySite/MyFolder/MyTopic/include/includedFile.htm, line 93

      An object tag cannot be placed inside another object tag.

       

      So, MyFile.ASP uses include/includeFile.htm. The SWF is inserted into includeFile.htm. DWCS4 uses this code:

       

      <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="510" height="384">
            <param name="movie" value="/MySite/MyFolder/MyTopic/images/oneOfMany.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" />
            <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="/MySite/MyFolder/MyTopic/images/oneOfMany.swf" width="510" height="384">
              <!--<![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" />
              <!-- 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>

       

      I understand the problem with nested objects. I think what I'd really like is to keep CS4 but go back to the method CS3 was using to insert SWF files. This current method is especially difficult because when I change it and later reopen the file DW wants to "correct" it.

       

      Any helpful hints would be appreciated.

       

      Rob Mack