Centering SWF in Browser


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””>
<html xmlns=“”>
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” />
<meta http-equiv=“Content-Language” content=“en-us” />

<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” />