3 Replies Latest reply on May 29, 2010 4:02 PM by raphaelP

    Struggling to embed a .swf object in DW CS5

    raphaelP Level 1

      So I just got CS5, after upgrading from CS3 and have basically spent a whole week figuring out my old workflows. The following problem has stumped me for the past 2 hours, and I can't seem to fix it.


      I have a basic html file with a table. In the table, I have been in the past embedding a little video player that plays an flv file. When I publish the Flash files from flash CS5 and play them with flash player, they play fine... Adobe flash player 10 opens up a little window after I double click on the .swf on my hard drive.


      So in Dreamweaver I drag the swf from my assets into my html doc. It creates all this code which CS3 didn't create (I compared with some of the html docs that I did under CS3). This code pertains to checking your version of flash and forcing to download the latest flash player. All seems good until I preview in browser by hitting f12, you know the drill...


      At this point I would expect my little flash player embedded into my web page to play the .flv  video off my hard disc. Instead I see this prompt on my web page that says


      "Content on this page requires a newer version of Adobe Flash Player." and there is a download button.... WTF!!!! Same result in Firefox and IE 8


      So at first I thought I was not up to date, yet I am playing all flash content fine on my browser, and the pages I created under CS3 load the flash player, with flash 10. I even reinstalled flash 10 successfully. I still get the stupid prompt when I am previewing my HTML...


      First of all, I want to be able to control whether this occurs on my pages or not, it obviously has to do with the content created under CS5, because I never had this under CS3. I tried removing what I suspected was the code resonsible for this, but then it breaks the page and the video does not even show up.


      How can I clean this mess up?  Is there a way to force DW to just post the flash content without all this extra code that does flash version checking, it's a nuisance and I can't make it work properly. Thank you for your help.

        • 1. Re: Struggling to embed a .swf object in DW CS5
          370H55V Level 4

          Rather than dragging it, have you tried Insert>Media>SWF or Ctrl+Alt+F to insert it in the same place?

          It will still generate the "get FlashPlayer" code but you should also see the object embed code for the SWF.

          Dragging may not properly link to the media file, which will result in you seeing the prompt to download the latest player.


          There is a note in the code (or there should be, I always see it when I insert from the menu bar) that tells you what to remove if you don;t want the prompt to show.


          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="768" height="266" id="FlashID" title="your_flash_file">
                        <param name="movie" value="files/your_flash_file.swf" />
                        <param name="quality" value="high" />
                        <param name="wmode" value="opaque" />
                        <param name="swfversion" value="" />
                        <!-- 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="files/chuys-memorial-day.swf" width="768" height="266">
                          <param name="quality" value="high" />
                          <param name="wmode" value="opaque" />
                          <param name="swfversion" value="" />
                          <param name="expressinstall" value="Scripts/expressInstall.swf" />
                          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                            <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>
                          <!--[if !IE]>-->
          • 2. Re: Struggling to embed a .swf object in DW CS5
            jxlusa Level 2

            Also, make sure that the link to the .swf is correct. That is the behavior you would expect if the browser simply cannot find the file.

            • 3. Re: Struggling to embed a .swf object in DW CS5
              raphaelP Level 1

              TO reply to the kind people who came to my assistance:


              Thank you!


              Yes I dissected the code and I tried removing the stuff. It was not helping

              in any way. It is bizarre, but once I restarted my ocmputer this morning, it

              just worked miraculously. I kept hitting reload on my browser, and was not

              getting the result I wanted, and now it just works... just like that. I must

              have had something sticky in the cache. Strange though, because I tried and

              got the same problem on IE and firefox, so I was skeptical that it was a

              caching thing...




              I still learnt something