How to center flash movie in browser window

Can anyone explain how to horizontally center my Flash movie in the web browser window after publishing?
A bit of background:
I was able to achieve this using <center></center> tags a few years ago. But I have since upgraded to CS5 and I understand that this old method is now obsolete.
I have found a few threads/forums that address this, but I know nothing about HTML and these threads don't help me because they assume you have more knowledge than I possess. When opening up the index.html file in Dreamweaver I can't find anything that looks vaguely familiar to what is being discussed. I have found some code samples using <div></div> tags but have no idea where to place it.
So I will need it explained to me in a step by step fashion, including which file I need to fix and what program I should use. Code samples will be very welcome if you can tell me exactly where it goes.
Thanks in advance...

Just realized that there is no scrolling functionality with the .swf generated from the new CS5. Can anyone help out by providing revised code for centering and scrolling?
I found something elsewhere in the forums that worked for both centering and scrolling that worked fine yesterday, but upon visiting my site today for testing, it did not allow the scrolling, and centering did not work in Firefox. Tested both Safari and Firefox on 2 Macs running Snow Leopard.
Again, much appreciated - nice to visit forums where people are interested in helping instead of screaming at each other. Will visit the Illustrator or Indesign forum to see if I can help out someone there...

Similar Messages

  • How to centre Flash content in browser window?

    Hi there
    I'm relatively new to Flash, so maybe there's a simple answer to this one.
    How do I centre my Flash content horizontally in the browser window? In the Publish Settings I see there are options to align the HTML to Default, Left, Right, Top and Bottom, but no Center. Is there a setting somewhere else? Do I need to write some ActionScript to do this? (If so, what?)
    I'd appreciate any suggestions.
    (I'm using CS3 on a Mac.)

    OK, I'm fumbling around a bit here. I see now that the Flash content does resize to fit the window. So, back to my original question: how can I get it to keep its original size but stay centered horizontally in the window?
    Any advice would be greatly appreciated.

  • How to center wireframe layout in browser window

    HELP!!
    I've created a set of wireframes for a website in Proto but when I bring them up in a browser window the layout is always left aligned and I cannot figure out how to get the layout to center in the browser window.
    I've used margin: 0 auto; on the container div but it does no good, the layout stays left aligned. I'm about to pull my hair out on this one.
    The URL is http://www.bluegrasswebservices.com/kpp/index.html
    Thanks for your help
    Gary

    I had the same issue and decided to make the change myself. All you have to do is add a wrapper div, match it to the width of your file and center it via CSS. It would def be much more convenient to have this as an option, but alas your solution is below....
    HTML
    <div id="wrapper">
    Your page content
    </div>
    CSS
    #wrapper{
        width: (width of your content);
        position: relative;
        margin: 0 auto;

  • How can i transfer movies from my windows laptop to ipad 3

    how can i transfer movies from my windows laptop to ipad 3

    Import them into iTunes then sync them to your iPad

  • How to download flash player 11 on windows vista 64 bit ?

    how to download flash player 11 on windows vista 64 bit ?

    Just download it from http://get.adobe.com/flashplayer/ - the installer will automatically install both 32-bit and 64-bit players on a 64-bit system.
    [topic moved to Flash Player forum]

  • How does a servlet close the browser window?

    How can a servlet close the browser window it is running in?

    I'm running the servlet by calling it in a browser window, passing parameters using POST, with the parameters appearing at the end of the url.
    Is there another way to run the servlet, without it affecting the browser window? That would be a better solution.

  • How do I open a new browser window from Flash

    I wish to open a new browser window from Flash and when the new window closes to return to the location from whence I started.
    ThomasChen

    The command to open a new window would be the "_blank" part of a command to link to a web page in the code below.
    navigateToURL(new URLRequest("http://www.anothersite.com", "_blank"));
    As far as the new window closing and getting back to where you were in the original window, I don't understand where that original window might have gone to... You should be wherever you last left it.

  • Centering a Flash movie in Browser??

    If all I have embedded in an html page is a small Flash
    movie, how do get it to center in a browser so it's not flushed
    left??
    Any help on this would be great. Thanks!

    > If all I have embedded in an html page is a small Flash
    movie, how do get
    > it to center in a browser so it's not flushed left??
    I create a Div (or a table) and center that.

  • Center flash movie in webbrowser

    i have the setting in flash cs4 set to align ver center and
    horizontal center but when i publish my movie it appears on the
    left side , how can i center my flash movie ?

    i tried your code, didn't work:  here is the code on my page.  I need my flash movie to beup at the top and centered with the rest of the page.  please assist.
    <!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>Online_Tagsale.com</title>
    <link href="CSS/Online_Tagsale.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    a:link {
    color: #C00;
    a:visited {
    color: #C00;
    a:hover {
    color: #000;
    -->
    </style>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    </head>
    <body bgcolor="#FFFFCC">
    <div id="banner"><div align="center">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="150" align="middle" id="FlashID" title="FinalBanner">
      </div>
      <param name="movie" value="IMAGES/FLASH/finalbanner.swf" />
      <param name="quality" value="low" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="6.0.65.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" />
      <param name="LOOP" value="false" />
      <param name="BGCOLOR" value="#000000" />
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
      <!--[if !IE]>-->
      <object data="IMAGES/FLASH/finalbanner.swf" type="application/x-shockwave-flash" width="800" height="150" align="middle">
        <!--<![endif]-->
        <param name="quality" value="low" />
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="6.0.65.0" />
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <param name="LOOP" value="false" />
        <param name="BGCOLOR" value="#000000" />
        <!-- 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></center>
    </div>
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
    <div id="main_image"> </div>
    <div id="column_container">
    <div id="banner">
      <blockquote>
        <blockquote>
        <blockquote>
              <blockquote>
                <blockquote>
                  <blockquote>
                    <blockquote>
                      <blockquote>
                        <blockquote>
                          <blockquote>
                            <table width="824" border="1">
                              <tr align="center" valign="middle">
                                <th width="200" height="24" scope="col"><img src="IMAGES/green.JPG" width="200" height="150" alt="green" /></th>
                                <th width="200" scope="col"><img src="IMAGES/blue.JPG" width="200" height="150" alt="blue" /></th>
                                <th width="200" scope="col"><img src="IMAGES/shoes.JPG" width="200" height="150" alt="shoes" /></th>
                                <th width="196" scope="col"><img src="IMAGES/figure.jpg" width="200" height="150" alt="figure" /></th>
                              </tr>
                            </table>
                            <table width="421" border="1" align="center">
                              <tr align="center">
                                <th width="411" align="left" scope="col"> <div align="left"></div></th>
                              </tr>
                            </table>
                            <h1 align="center">Welcome</h1>
                          </blockquote>
                        </blockquote>
                      </blockquote>
                    </blockquote>
                  </blockquote>
                </blockquote>
              </blockquote>
            </blockquote>
          </blockquote>
          <h2 align="center"><strong>Our site was founded by a group of stay at home mothers who hoped to get rid of various items from their homes. </strong></h2>
          <h2 align="center"><strong> The idea of organizing and holding a tagsale at home was overwhelming considering their daily responsbilities.</strong></h2>
          <h2 align="center"><strong>So was born the idea of having the tagsale online.</strong></h2>
          <h2 align="center"><strong>You can browse and shop or join and sell, all from the comfort of your own home. </strong></h2>
          <h2 align="center"><strong>- Sign up for our monthly newsletter<br />
            - Join our sales team ($59.95 yearly membership fee)<br />
          </strong></h2>
        <h2 align="center"><strong>Welcome and ..</strong></h2>
          <h2 align="center"><strong>THANKS FOR STOPPING BY</strong> </h2>
        </blockquote>
      </div>
      <div id="right_column">
    <blockquote>
    <p align="center">!!FREE BACKGROUNDS!! at  <a href="http://www.webpagebackground.com/">www.webpagebackground.com</a>  </p>
      <p align="center">!!!FREE RECIPES!!! at <a href="http://www.foodnetwork.com/">www.foodtv.com</a></p>
    <div align="center">
        <blockquote>
          <blockquote>
            <blockquote>
              <blockquote>
                <blockquote id="reference">
                  <h1><a href="ReferencePage.html" title="link2references">Reference Page </a></h1>
                </blockquote>
              </blockquote>
            </blockquote>
          </blockquote>
        </blockquote>
      </div>
      <blockquote>
        <blockquote>
          <blockquote>
            <blockquote>
              <blockquote>
        <table width="1268" border="1">
                <tr>
                  <th width="62" scope="col"> </th>
                  <th width="260" scope="col"><a href="Index1.html"><img src="IMAGES/FLASH/home.gif" alt="home" width="208" height="50" hspace="25" border="0" longdesc="IMAGES/FLASH/home.gif" /></a></th>
                  <th width="309" scope="col"><a href="mailto:[email protected]"><img src="IMAGES/FLASH/contact us.gif" alt="contact" width="200" height="50" hspace="37" border="0" longdesc="IMAGES/FLASH/contact us.gif" /></a></th>
                  <th width="312" scope="col"><a href="http://get.adobe.com/flashplayer/"><img src="IMAGES/FLASH/flashbegger.gif" alt="products" width="200" height="50" hspace="45" border="0" longdesc="IMAGES/FLASH/products.gif" /></a></th>
                  <th width="291" scope="col"><a href="Product.html"><img src="IMAGES/FLASH/products.gif" alt="products" width="200" height="50" hspace="45" border="0" longdesc="IMAGES/FLASH/products.gif" /></a></th>
                </tr>
    </table>
        <p align="center"> </p>
                <p align="center"> </p>
                <p align="center"> </p>
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FlashID");
    //-->
    </script>
    </body>
    </html>
     </p>
      </div>
    </div>
    </body>
    </html>

  • How to center swf in all broswer windows?

    I'm having a frustrating time of this. I've tried using a
    table at 100% height & width in an html page with no margins,
    and it's content centred horixontally & vertically, but in
    safari it always positions the swf right at the top of the screen.
    I also tried using flash's publish tools, to generate the
    html page and cenbtre the content but it always still generates an
    html page with the flash movie in the top left corner...grrrrrr
    The following link shows a site that acheived perfect
    cenering in all teh browsers i've tested in...how do they do this?
    is it javascript? If so how? And they also have this great way of
    making the browser window open to its maximum possible dimensions
    automatically , i love that - ho wcan ai d that also???
    Thanks greatly for taking the time to read this post & in
    advance of any help,
    Cheska,

    ccesca wrote:
    > I'm having a frustrating time of this. I've tried using
    a table at 100% height
    > & width in an html page with no margins, and it's
    content centred horixontally
    > & vertically, but in safari it always positions the
    swf right at the top of
    > the screen.
    >
    > I also tried using flash's publish tools, to generate
    the html page and
    > cenbtre the content but it always still generates an
    html page with the flash
    > movie in the top left corner...grrrrrr
    >
    > The following link shows a site that acheived perfect
    cenering in all teh
    > browsers i've tested in...how do they do this? is it
    javascript? If so how? And
    > they also have this great way of making the browser
    window open to its maximum
    > possible dimensions automatically , i love that - ho
    wcan ai d that also???
    >
    > Thanks greatly for taking the time to read this post
    & in advance of any help,
    >
    > Cheska,
    Most probably you have the DOCTYPE in your html.
    This messes up the basic table tags.
    You can either remove the line or place this in your html
    HEAD tag
    <style> html, body {height:100%} </style>
    <!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=iso-8859-1" />
    <title>Untitled Document</title>
    <style> html, body {height:100%} </style>
    </head>
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Center html preview in browser window

    I've recently created a 800x400 pixel flash document and
    published it to html. When previewing in my browser it positions
    itself in the upper left-hand corner of my window. What adjustments
    to the publishing settings (or html coding) do I need to apply to
    center it vertically and horizontally in my browser window at
    preview? Thanks for any responses.
    typograffer

    it would be of better help if you listed your site. Or if you
    posted your code, i could help you with this issue.

  • How to have Flash movie resize with rest of webpage

    Hi,
    I ran a search for this but couldn't find anything. Is there code I can write into my webpage (using dreamweaver) that will make my flash movie get larger along with the rest of my webpage when the viewer zooms their internet explorer 8 browser? Here's a link to an example. Looks fine when page is viewed at 100% but above that everything zooms except the movie.
    www.empowerments.net/canary.html
    Thanks for your help,
    James

    Thanks again for your time but it seems we're not on the same page (pun intended!).
    I do appreciate you trying to help me and I understand how easy it is to misread the question perameters.
    When your reply said "The Zoom does create a white space because it "zooms" the background image and text only.
    The Flash content isn't set to zoom with it apparently"
    it actually just stated what I said was the problem in my original post.
    I've already said the flash content looks fine at 100% and is only a problem when zoomed in by the internet explorer browser.
    The help I'm looking for is maybe a tip on some html code (like rescale = true or something) that I can write into the web page (via Dreamweaver) that tells the flash content to scale up with the rest of the page when zoomed.
    Does anyone else have any suggestions?
    Thanks again for your time and willingness, Mac=Win=Me!
    James

  • Urgent! HTML table cell - Flash movie display browser dependent

    Hi all,
    I wonder if anyone has experienced the same problem i have
    (note, Windows XP, Dreamweaver 4).
    Consider the (rough) HTML code attached: A simple HTML table
    of one column and two rows is constructed to hold an image banner
    link and a Flash movie banner link in each cell consecutively.
    The Flash movie works normally when the HTML page is viewed
    in IE and Opera, until that is, it is placed inside a table cell.
    Inside the cell the flash movie seems to disappear, though i
    suspect it collapses to an image 1 pixel in height, as this can
    just about be seen using Opera.
    Is there something that I am missing? The code of course
    seems correct to me - perhaps there is a browser setting i am
    missing?
    Any help apprceiated - as i need to implement this code ..
    Daz

    Hi Alan,
    Dont think that was the problem (percentages used to scale to
    users browser?) ... though you did set me thinking!
    Was tired before, so only just remembered that when i was
    experimenting with setting the Table Properties the image was
    actually occasionally visible!!
    Short version: When formatting a cell containing a Flash
    animation dont leave the H field blank or use % (even though you're
    suppose to be able to!), use pixels instead - otherwise the Flash
    image collapses/disappears. Blank and % are fine everywhere else
    (I did type a long answer before, but it got eaten by the
    forum monster
    Someone/i will probably figure out
    why this is so or maybe i've just rediscovered the wheel
    here - but thats not really important now - because my Flash
    animation now renders similarly across IE, Opera and FireFox !!
    So thanks for your help!
    Daren

  • Rolling window moves when browser window changes size??

    I have added a rolling window into my page and it is in the
    correct position when I click to preview, but when the browser
    window moves (when I click on my Favourites window panel for
    example) the rolling window moves along and out of its position.
    Is there anyway to stop this?
    Cheers,
    Zoe

    Change this -
    </head>
    to this -
    <style type="text/css">
    <!--
    body { text-align:center; color:#CCC; }
    #wrapper { text-align:left; width:720px; margin:0
    auto;position:relative; }
    -->
    </style>
    </head>
    change this -
    <body ...>
    to this -
    <body ...>
    <div id="wrapper">
    and this -
    </body>
    to this -
    </div><!-- /wrapper -->
    </body>
    and see if that helps.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "dollecom" <[email protected]> wrote in
    message
    news:e5ffjv$qa8$[email protected]..
    > I have added a rolling window into my page and it is in
    the correct
    > position
    > when I click to preview, but when the browser window
    moves (when I click
    > on my
    > Favourites window panel for example) the rolling window
    moves along and
    > out of
    > its position.
    >
    > Is there anyway to stop this?
    >
    > Cheers,
    > Zoe
    >

  • Restrict flash to open browser window

    hello everyone,
    i'm making an application in which there is one section for
    game.
    Now this games have links which when clicked opens new
    browser...this ias what i dont want..........
    How can i restrict flash game to open browser window?
    i dnt want flash game to open browser window when those links
    in the games are clicked...
    One restriction with me is that i can not edit that games so
    i can't remove links from games...
    hope there will be sol. to this prob.
    thanks in advance.................

    Something like that could maybe help:
    Runtime.getRuntime.exec("iexplore http://www.google.com");
    but it's not platform independent + I couldn't let it work in that way. It only worked with Runtime.getRuntime.exec("c:\\windows\\....\\iexplore.exe http://www.google.com");
    But it's surely not platform independent.
    So the answer is in fact 'I don't know'.
    And if you ask why am I writing all that then, the answer is 'I don't know' too.
    And if you ask why...

Maybe you are looking for