Inserting a Flash Object
On one of my mail lists there was a dispute how to insert a Flash object into a web page. One person posted that Dreamweaver code would validate as HTML strict “out of the box”. To test this assertion I inserted I created this page. The flash item for “Reveiws You Can Use” with the default Dreamweaver method from the Insert toolbar selecting Flash and navigating to the file.
The code produced is:
<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="333" height="81" title="Reviews You can Use">
<param name="movie" value="../flash/reviews.swf">
<param name="quality" value="high">
<embed src="../flash/reviews.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="333" height="81">
</embed>
</object>
This code does not validate as you can see by running this page through the W3C validator.
In order to have the code validate you must use the Flash Satay method detailed on A List Apart or use the FlashObject javascript option from DeConcept which is a slightly easier method to use since you can download the entire object for use on your pages but it does require javascript.
For those using Dreamweaver I highly recommend reading the FlashObject page using the DeConcept link above. Since it contains a full explanation of the Macromedia default vs the FlashObject method I won't repeat it here.
FWIW, now that Macromedia has been acquired by Adobe the FlashObject method may replace the default method in Dreamweaver since it is the method used by Adobe's PhotoShop according the information on the FlashObject page.