A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Centering?

  1. #1

    Centering?

    Stupid question. I'm working in Flash MX 2004 and I can't center my flash movie. I keep publishing it with the settings to make it centered but everytime I open the html file it doesn't work. It's always flush left.

    How can I center it?

    Any help I'd really appreciate.
    Thanks,
    Jeremy

  2. #2
    ReMember gobbles's Avatar
    Join Date
    Nov 2002
    Location
    Denmark
    Posts
    983
    hi yes I wonder why they call it center, when it's nothing like it at all..

    use this html code instead and replace the data with your own..



    <head>
    <title>My Center Page</title>
    </head>
    <body bgcolor="#666666">
    <table align="center">
    <tr>
    <td align="center"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="625" height="325" id="index" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="index.swf" />
    <param name="menu" value="false" />
    <param name="quality" value="best" />
    <param name="salign" value="rb" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="index.swf" menu="false" quality="best" salign="rb" bgcolor="#ffffff" width="625" height="325" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </td>
    </tr>
    </table>
    </body>
    </html>
    http://www.rickigregersen.com ...finally a blog!

    Your damned if you do...but your particually damned if you don´t

  3. #3
    ReMember gobbles's Avatar
    Join Date
    Nov 2002
    Location
    Denmark
    Posts
    983
    hi yes I wonder why they call it center, when it's nothing like it at all..

    use this html code instead and replace the data with your own..


    Code:
    <head>
    <title>My Center Page</title>
    </head>
    <body bgcolor="#666666">
    <table align="center">
      <tr>
        <td align="center"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="625" height="325" id="index" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="index.swf" />
    <param name="menu" value="false" />
    <param name="quality" value="best" />
    <param name="salign" value="rb" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="index.swf" menu="false" quality="best" salign="rb" bgcolor="#ffffff" width="625" height="325" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </td>
      </tr>
    </table>
    </body>
    </html>
    http://www.rickigregersen.com ...finally a blog!

    Your damned if you do...but your particually damned if you don´t

  4. #4
    ReMember gobbles's Avatar
    Join Date
    Nov 2002
    Location
    Denmark
    Posts
    983
    weird...

    Code:
    <head>
    <title>My Center Page</title>
    </head>
    <body bgcolor="#666666">
    <table align="center">
      <tr>
        <td align="center"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="625" height="325" id="index" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="index.swf" />
    <param name="menu" value="false" />
    <param name="quality" value="best" />
    <param name="salign" value="rb" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="index.swf" menu="false" quality="best" salign="rb" bgcolor="#ffffff" width="625" height="325" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </td>
      </tr>
    </table>
    </body>
    </html>
    http://www.rickigregersen.com ...finally a blog!

    Your damned if you do...but your particually damned if you don´t

  5. #5
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    Might want to try using the [ php ] tag... - also, use the edit button to fix a previous post, rather than adding new posts...

  6. #6
    Senior Member hanszorg2's Avatar
    Join Date
    Sep 2004
    Posts
    308
    open your published html file in dreamweaver click on the body tab (its at bottom left) and select center aligned from the properties menu

    or

    copy this code

    <div align="center">

    after

    <BODY bgcolor="#FFFFFF">

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center