Correct Way to Embed .swf Files

Hey guys,

 I have been searching for a few days for the optimal way to display swf files in an html document. It seems to be hard to find an easy tutorial that is up to date with the newer versions of flash, IE etc..... 

Not having used flash for about a year or so there seems to have been some changes. One of which is the adding of the AC_RunActiveContent.js file with the code…

<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>

after your META tag

and as far as I know the way to display the swf file is…

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','300','height','200','align','middle','src','images/pslideshow2','quality','high','bgcolor','#232323','allowscriptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','images/pslideshow2' ); //end AC code
</script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="300" height="200" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="movie" value="images/pslideshow2.swf" />
      <param name="quality" value="high" />
      <param name="bgcolor" value="#232323" />    
      <embed src="images/pslideshow2.swf" quality="high" bgcolor="#232323" width="300" height="200" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />    
  </object></noscript>

So my question to you guys is… is this the correct way? will this validate correctly?

Much Appreciated,

Nuvis