Click to See Complete Forum and Search --> : XHTML Help


ScubaKing22
07-12-2004, 03:17 PM
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 ;)

Merve
07-12-2004, 03:32 PM
The src attribute of <embed> seems to have been deprecated :confused:. This reference (http://www.html-tags.info) seems to say to use the <object> tag instead :confused:

(Are they trying to make XHTML complicated? For god sakes you're coding in Transitional! Darn W3C!)

ScubaKing22
07-12-2004, 03:55 PM
Well when I validate the source using this (http://validator.w3.org/detailed.html) it says that, for each of those attributes, they're all undefined, and at the very end says element 'embed' undefined. But like I said, removing <embed> causes the flash to dissappear in Firefox :queasy:

pyro
07-12-2004, 04:43 PM
I've used this method (http://www.alistapart.com/articles/flashsatay/) in the past...

Merve
07-12-2004, 08:44 PM
Thanks for the little tutorial pyro !

Moonglobe
07-12-2004, 10:17 PM
that's the only method that i know of that validates... its great :D

pyro
07-12-2004, 11:08 PM
Originally posted by Merve
Thanks for the little tutorial pyro ! Well, I didn't write that article, so the credit should go to Drew McLellan... :)

ScubaKing22
07-13-2004, 03:18 AM
Wow that's very usefull--the exact probelm I was having :D Thanks a lot for that link pyro ;)