I'm using this code to embed swf to website, but height and wight should be detected automatically.

Code:
<OBJECT ID="aa" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="600" height="450" align="center">
<PARAM NAME=movie VALUE="MYFLASHFILE">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="MYFLASHFILE" width="600" height="450" quality=high TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED>
</OBJECT>
as you may see here width="600" and height="450", but it should be done automaticly.