View Full Version : Chromless window simple question

10-15-2002, 05:54 PM
Hi everybody, I have a little question here, IŽll be very grateful if anyone can explain this to me:

I have a chormless window with a swf in it ,everything ok to this point, but the swf do not appear in the center of the window, appear slightly moved to the top and to the left. So my very simple question is: how can I center my swf?
(Guess the java script is the key, but I have no idea!)

Anyone can help me? :confused:

(forgive my english, I never payed attention to the english teacher)

10-15-2002, 07:34 PM
what about using an HTML table with 100% width & 100% height, then set align="center" & valign="middle" ?????

is that what you mean?

also it might help to remove the page margins - I'm not convinced that you mean 'appear slightly moved to the top and to the left.'

<title>My Centred Flash Movie</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<td align="center" valign="middle"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="300">
<param name="movie" value="YOURFLASHINTROHERE.SWF">
<param name="quality" value="high">
<embed src="YOURFLASHMOVIEHERE.SWF" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="300"></embed></object></td>


try that????

ps, you should have really paid attention to the english teacher!! ;)

10-15-2002, 07:44 PM
:) Thank you man!

And yes, I should have really paid attention to the english teacher!! :D :D :D