A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: centering a movie in the browser

  1. #1
    Hello,
    I'm trying to center a movie in the browser but it seems to stay in the top left hand everytime I publish preview it. I changed the publish setting several times but can't get it work right
    Sorry if the question is too basic for this forum.
    Any help would be greatly appreciated.
    Thanks

  2. #2
    Junior Member
    Join Date
    May 2001
    Posts
    15

    Centering Flash Movie

    There is an easy fix to this problem...within the HTML page, create a table with the width and height values set to 100% (this will require the table to take up the entire browser window no matter what resolution the user's screen is). Then set the alignment of the table to "center." Finally just insert your flash movie within the single table data <TD> and it should center itself within the table.

  3. #3
    Old dog learning new tricks

    Join Date
    Dec 2000
    Posts
    1,498
    Use an html editor and create a 3x3 table with 100% witdth and height. Put the swf in the middle cell aligned to center. Like:

    <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>
    <div align="center"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="36" height="36">
    <param name=movie value="file:///C|/Program%20Files/Macromedia/Dreamweaver%204/Lessons/Lesson%20Files/swifs/Biking.swf">
    <param name=quality value=high>
    <embed src="Biking.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="36" height="36">
    </embed>
    </object></div>
    </td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    </table>

  4. #4
    Thank you!! Thank You!!

  5. #5
    Old dog learning new tricks

    Join Date
    Dec 2000
    Posts
    1,498
    Take care

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