Centering SWF in Browser

Hello,

I’m trying to center an swf in a browser without using table width and height 100% and the most promising way i’ve found so far is to set

Stage.scaleMode = “noscale”;

in the first frame and then set the width and height of the object tag in the html to 100%. However, i’m having trouble getting this to work with the doctype in some newer browsers. What am I doing wrong?

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml”>
<head>
<title>Test</title>
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” />
<meta http-equiv=“Content-Language” content=“en-us” />

</head>
<body bgcolor="#FFFFFF">
<object type=“application/x-shockwave-flash” data=“test.swf” width=“100%” height=“100%”>
<param name=“MOVIE” value=“test.swf” />
<param name=“PLAY” value=“true” />
</object>
</body>
</html>