Html

hello… does any one know the html script for centering obgects on the page? You see… i made a site in flash mx… and i published it in html… but it isnt in the center… and id like it to be right in the middle of a page… i have tried vspase and hspace tags, but they dont seem to work…

here’s the script for the page… plz tell me wat changes i have to make:

<HTML>
<HEAD>
<meta http-equiv=Content-Type content=“text/html; charset=ISO-8859-1”>
<TITLE>daa</TITLE>
</HEAD>
<BODY bgcolor="#999999">
<!-- URL’s used in the movie–>
<A HREF=http://www.geocities.com/csclandaa/intro.html></A> <A HREF=http://www.b2g2.com/boards/board.cgi?user=daa></A> <!-- text used in the movie–>
<!–BACKGROUND–><OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”
codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0
WIDTH=“800” HEIGHT=“400” id=“daa” ALIGN="">
<PARAM NAME=movie VALUE=“daa.swf”> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#999999> <EMBED src=“daa.swf” quality=high bgcolor=#999999 WIDTH=“800” HEIGHT=“400” NAME=“daa” ALIGN=""
TYPE=“application/x-shockwave-flash” PLUGINSPAGE=“http://www.macromedia.com/go/getflashplayer”></EMBED>
</OBJECT>
</BODY>
</HTML>

forgot that the html script will be used…

Use a table set to 100% width and height, then embed your Flash movie in the centre of the table, like you would a graphic or some text. This way whatever the suers’ screen res, the movie will be in the middle. :slight_smile:

kitiara, since it doesnt seem that he has much knowledge of HTML I’ll elaborate on what you said:

table
tr
td align=“center” flash embed goes here /td
/tr
/table

OR you could just preceed your embed tag with a center
and follow with /center
note: I left out the brackets.

hope this all helps.

Peace

Or you can put it in a <div>layer in CSS.
Example:
<div id=“Layer1” style=“position:absolute; width:200px; height:115px; z-index:1; left: 220px; top: 10px”.
I do not close the tag, otherwise it does not show.
after that you use the embed and the object taf. In the middle you put the swf movie.
And of course the closing tags for embed and object

div>

works always fine to me.

God Luck!