I've recently turned to XHTML, but I've now got a problem relating to Flash (I think). What I had was an XHTML 1.0 compliant page consisting of flash that worked fine in IE. When switching to Mozilla Firefox just days ago, the flash dissappears. How do I solve this? I add in the <embed> tag and it shows up fine. But now the page is no longer XHTML 1.0 compliant. Any ideas how to get the flash to show up in Firefox yet still remain XHTML 1.0 compliant? Here is the code snippet that I'm using in Firefox (The IE version was the same just without the <embed> tag):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Non-Compliant Flash</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0" id="main" width="450" height="300">
<param name="movie" value="main.swf" />
<param name="bgcolor" value="#000000" />
<param name="quality" value="high" />
<param name="allowscriptaccess" value="samedomain" />
<embed id="main" src="main.swf" allowscriptaccess="samedomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="#000000" quality="high" width="450" height="300"></embed>
</object>
</body>
</html>
Any help is greatly appreciated 😉