1 Reply Latest reply: Dec 11, 2007 9:29 PM by charithao RSS

    Publish to HTML

    YTCollege Community Member
      I am by no means an expert. I am trying to publish an swf and HTML, but when I view the HTML (no matter what I have in the publish settings) the swf movie is in the top left of the screen with white for the rest of the screen. The ideal position is in the middle of the screen with the window matching the size of the swf (which is 550 x 400). When I open the html file in Dreamweaver, the swf is not present in the window, so I am not sure how to position the swf movie. I want to keep the code that FLASH publishes because it directs the user if they do not have the FLASH player. Does anyone know the publish settings or the html code that I need to achieve the correct window position?
        • 1. Re: Publish to HTML
          charithao
          Actually the publishing feature in Flash could be used to preview the flash movie in a browser. You have to chnage the generated html file if you need any other output than flash itself put out. You have to use bit of html and css to have your movie positioned. Below is an example. You could replace the object and embed tags with what flash is generating.

          Ex:

          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
          " http://www.w3.org/TR/html4/loose.dtd">
          <html>
          <head>
          <title>Untitled Document</title>
          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
          </head>

          <style type="text/css">
          #flashcontent {
          height: 300px;
          width: 300px;
          margin-left: auto;
          margin-right: auto;
          }
          /* end hide */
          body {
          margin: 0;
          padding: 0;
          background-color: #eee;
          }
          </style>
          <body >
          <div id="flashcontent">
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300px" height="300px">
          <param name="movie" value="Untitled-1.swf">
          <param name="quality" value="high">
          <param name="scale" value="default">
          <embed src="Untitled-1.swf" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300px" height="300px"></embed>
          </object>
          </div>
          </body>
          </html>