dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: --centering flash movie on browser>>>HOW???

  1. #1
    Browsing
    Join Date
    Dec 2000
    Posts
    105
    ANYBODY
    when i publish the movie (from flash-----html+flash)
    the movie dosent go to the center of browser...
    how can i put it to the center(vertical and horizontal) of the browser...(i tried all the options on the publish dialog but nothing and i now its possible with dreamweaver
    but i think that must be someway from flash....
    thx.

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Location
    Sydney
    Posts
    158
    Drop this HTML code into your text editor and save it as something like 'Centred.html' and then put it in the 'HTML' folder inside your Flash application folder. It will then appear as a template in your HTML publish options in Flash. This code centres the SWF in the browser window by way of a table.

    $TTFlash Only (Centered)
    $DS
    Use an OBJECT and EMBED tag to display Flash. Content displays in browser centered horizontally and vertically, without margins.
    $DF
    <HTML>
    <HEAD>
    <TITLE>$TI</TITLE>
    </HEAD>
    <BODY bgcolor="$BG" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">

    <!-- URL's used in the movie-->
    $MU
    <!-- text used in the movie-->
    $MT

    <TABLE WIDTH="100%" HEIGHT="100%" BORDER="0"><TR align="center" valign="middle"><TD><OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
    WIDTH=$WI HEIGHT=$HE>
    $PO
    <EMBED $PE WIDTH=$WI HEIGHT=$HE
    TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
    </OBJECT></TD></TR></TABLE>

    </BODY>
    </HTML>

  3. #3
    Browsing
    Join Date
    Dec 2000
    Posts
    105

    thx BUT!!!!

    thanx man but this is a bit dificult for me..
    another way?????

  4. #4
    Junior Member
    Join Date
    Sep 2000
    Posts
    7

    Re: thx BUT!!!!

    Originally posted by juku79
    thanx man but this is a bit dificult for me..
    another way?????
    What part is dificult?

    Just place:
    <TABLE WIDTH="100%" HEIGHT="100%" BORDER="0"><TR align="center" valign="middle"><TD>

    right after <body>

    and:
    </TD></TR></TABLE>

    rigt before </body>

    It's peace of cake.

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