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:

<meta http-equiv=Content-Type content=“text/html; charset=ISO-8859-1”>
<BODY bgcolor="#999999">
<!-- URL’s used in the movie–>
<A HREF=></A> <A HREF=></A> <!-- text used in the movie–>
<!–BACKGROUND–><OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”
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=“”></EMBED>

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:

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

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.


Or you can put it in a <div>layer in CSS.
<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


works always fine to me.

God Luck!