You have three basic choices:
- Live with it. The embed tag has been deprecated for some time now. But all major browsers that can use it do so anyway. The javascript probably writes out an embed tag for them. But the validator cannot see that.
- Dispense with the <noscript> tag content, replace it with:
Code:
<noscript>Javascript is required to view this Flash content.</noscript>
or something like that which will lay out well in the space it will occupy when javascript is disabled.
- Use a valid single object tag or valid nested object tag combo to replave the invalid object/embed combo.
Bear in mind that the version of AC_FL_RunContent() used with this probably writes an invalid embed tag for those browsers that can use it anyway. If not, you could simply view the generated source code (if you have a utility that will do that) in one of those browsers (like Firefox, or anything not IE), copy and use that in the <noscript> section.
Obviously number 1 or 2 are easiest. It's not too hard to come up with a single valid object tag either. But if your Flash feature needs to stream, it will be inefficient in some IE versions, bear in mind this is only an issue in IE (less than 7 or less than 8, not sure which) when javascript is disabled:
Code:
<noscript>
<object data="rotator.swf" type="application/x-shockwave-flash" width="100%" height="100%" id="rotator" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="wmode" value="transparent" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="rotator.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#f1f2f2" />
</object>
</noscript>
If you want more help:
Please post a link to a page on your site that contains the problematic code so we can check it out.