Configure for publishing by clicking File>Publish settings
On Flash tab make sure ActionScript 3 is selected in ActionScript version dropdown list
Click File>Publish preview which generates a SWF version of the movie and inserts it on an HTML page.
You need to copy code from this page to the page on which you want to insert the SWF movie
You also have to be sure that the ActiveX control that Flash needs in IE browsers is available on your website
Note: You can open the Flash-Generated page in Dreamweaver and click File> Convert to XHTML (your version) to fix the Javascript tags so they are XHTML valid.
Remove the <embed> tags within the <object> tags
Copy the code generated by Flash
Open the source code of the page you generated in Flash
Open the source code of the page into which you want to insert the SWF file
copy the <script> tags that Flash has inserted into the <head> tags that reference the AC_RunActiveContent.js file
Be sure you upload this file to a <Scripts> subdirectory on the website
On the page body, be sure there is a set of <div> tags to hold the SWF movie <noscript> tags inside <p> tags are not XHTML valid
Copy the code, starting with the opening <script> tag, and ending with the closing </noscript> tag
Paste this code onto the page in the location you select for it
Be sure to delete the section within the <object> tags that begins with <embed> and ends with </embed> -- these tags are Netscape's version of the <object> tags and are not XHTML valid.
Insert a description of the Flash movie within the <object> tags for the screen reader to read.
If the page runs script, the code within the <script> tags will load the SWF file.
If the page cannot run the script it will use the <object> code to load the SWF file.
the code inserting the Flash Movie looks like this:
<div>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=7,0,19,0','width','400','height','300','title','FLV video example','movie','flv/flv','quality','high' ); //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=7,0,19,0" width="400" height="300" title="FLV video example">
This short movie plays an external FLV file of an explosion, and is only here to demonstrate valid XHTML
<param name="movie" value="flv/flv.swf" />
<param name="quality" value="high" />
</object>
</noscript>
</div>
Note: Some of the code above is wrapped at the end of the line because it is too long for the element that encloses it.