W3C-invalid HTML output

Hi everyone,

I was very disapointed to notice that if I choose the publish comand in Flash MX 2004 (and set the format at SWF+HTML), I get a “junk” HTML file i.e. the doctype is

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

this is a common and quite unsed W3C doctype. And when I try to [url=“http://validator.w3.org/check”]check the validity of my page (with the unchanged very output of Flash MX 2004), I get 11 Validation Errors.
Did someone already try to fix them ?

The errors are all the same: telling that the <embed> tag is not declared and should not have such attributes. 1 example:

Line 15, column 11: there is no attribute “src”

<embed src=[color=Red]“[/color]test.swf” quality=“high” bgcolor=“#ffffff” width=“550” height=“400”
*[size=1]
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the “Strict” document type with a document that uses frames (e.g. you must use the “Transitional” document type to get the “target” attribute), or by using vendor proprietary extensions such as “marginheight” (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.[/size]*

The quoted undefined element message is (where DTD means Document Type Definition):

**element “FOO” undefined **
You’ve used an unknown tag (represented here by “FOO”). Make sure the DTD indicated by your DOCTYPE actually includes this element.

If the tag in question is a frame-related tag you must use the “Frameset” DTD, and if you use (deprecated) physical markup (“FONT” and friends) you must use the “Transitional” DTD.

Thanks for your help