6 Replies Latest reply: Sep 29, 2011 8:12 PM by okjoss RSS

    diferent code on dreamweaver? help!

    okjoss

      Hello.. I write this message two times now.

      first I hope you can understand my poor english.. (sorry)

      I have a problem using flash on dreamweaver.... wen I preview it on safary it just show a blank square..

      I found this same problem on this forum but not answered my problem...

       

      well... wen I drag a swf file on dreamweaver cs5 create me this code:

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title>Untitled Document</title>
      <script src="../Scripts/swfobject_modified.js" type="text/javascript"></script>
      </head>
      
      <body>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="300" id="FlashID" title="flash content">
        <param name="movie" value="images/news.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="11.0.0.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="images/news.swf" width="200" height="300">
          <!--<![endif]-->
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="11.0.0.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" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
      <script type="text/javascript">
      swfobject.registerObject("FlashID");
      </script>
      </body>
      </html>
      

       

      wich is good but wen I press live view dont display nothing... and wen I preview it on safari.. show me this:

      screen-capture.png

       

       

      I note that flash generate a HTML file that work good the code of the HTML file created by flash is

       

      <!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>news</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="200" height="300" id="news" align="middle">
                      <param name="movie" value="news.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="news.swf" width="200" height="300">
                          <param name="movie" value="news.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>
      

       

      this play good on live view and safary...

      this was easy before.. now I´m stuck... any help will be apreciated.

      thanks!

      Josss

        • 1. Re: diferent code on dreamweaver? help!
          okjoss Community Member

          37 views an nothing?... hope this isn;t that dificuld... or is to easy?... well... if need more information just ask... is hard for me not use a swf.. im trying to use a ticker on my html site and i just can't make flash to work

          • 2. Re: diferent code on dreamweaver? help!
            John Waller CommunityMVP

            The best way to get responses on forums like this is to upload your problem page to the web and post a link so we can view it in our browsers.

            • 3. Re: diferent code on dreamweaver? help!
              okjoss Community Member

              sorry I have slow conection rigth now.. I post an answear an I don't see it... hope to not doble post..

               

              ok... thanks for your answear you are rigth..

              I uploaded the files.. here are the links

               

              the one generate by flash >

               

              http://www.masideassa.com/flash/news.html

               

              this one looks good... I can see it on firefox and safari

               

              an the one generated by dreamweaver (just open a new html and dro it inside)

               

              http://www.masideassa.com/flash/news1.html

               

              this one ask me to instal flash player (I think is the optional code dreamweaver use to show to people that dont has flash player)

              but I have it.. I donwloaded again to make sure.. and the same result.

               

              why that code dont work?

              thanks for you help!

              • 4. Re: diferent code on dreamweaver? help!
                MurraySummers CommunityMVP

                The page that does not display has this code -

                 

                <param name="movie" value="images/news.swf" />

                 

                the page that DOES display has this code -

                 

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

                 

                Does that suggest a 'cure' to you?  Looks like a pathing issue.

                • 5. Re: diferent code on dreamweaver? help!
                  okjoss Community Member

                  thank you murray, now it works online.. but offline I have the same problem...

                  excuse me my insistence... now I think is a software problem.. I upload a video to show.. hope you have time to see it.

                  here is the link:   http://www.youtube.com/watch?v=EEM0wZrvSNs

                   

                  well I know it dont have to much resolution my screen is to big.. but basicaly wath I did is to create a new site name news

                  and open a basic html and put a swf by drag and drom on the html ... the swf file is on the same folder of the html... I can preview it on dreamweaver

                  and the html created by flash wen I open it on dreamweaver and use live view the flash show up... but if I drag and drop the same swf file on dreamweaver

                  that one dont show up.. only the one that flash embeded... welll the code is diferent and dont understand why...

                   

                  here is the code of the html created by flash with the code created by dreamweaver so you can see the diferent...

                   

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

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

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

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

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

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

                          </style>

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

                      </head>

                      <body>

                          <div id="flashContent">

                              <p>THIS IS THE SWF    originaly    put here by flash.. and this HTML is the one flash created.</p>

                            <p>

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

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

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

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

                                  <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="news2.swf" width="200" height="400">

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

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

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

                                    <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>

                            </p>

                            <p>AND THIS IS THE ONE I paste on dreamweaver</p>

                              <p>

                                <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="400">

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

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

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

                                  <param name="swfversion" value="11.0.0.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="news2.swf" width="200" height="400">

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

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

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

                                    <param name="swfversion" value="11.0.0.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" /></a></p>

                                    </div>

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

                                  </object>

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

                                </object>

                              </p>

                          </div>

                      <script type="text/javascript">

                  swfobject.registerObject("FlashID");

                          </script>

                      </body>

                  </html>

                  • 6. Re: diferent code on dreamweaver? help!
                    okjoss Community Member

                    This code is generated by dreamweaver cs3_ and work good... even wen I open this html on cs5.5

                    gig I miss something?...

                     

                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

                    <html xmlns="http://www.w3.org/1999/xhtml">

                    <head>

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

                    <title>Untitled Document</title>

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

                    </head>

                     

                    <body>

                    <script type="text/javascript">

                    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','200','height','300','src','news','quality','high','pluginspage','http://www.adobe.com /shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','news' ); //end AC code

                    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="200" height="300">

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

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

                      <embed src="news.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="200" height="300"></embed>

                    </object></noscript>

                    </body>

                    </html>