468,505 Members | 1,540 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

XHTML friendly way to display a flash (.swf) movie

Hi,

How do I "embed" a flash movie to a web page so that it will validate
with the XHTML transitional W3 validator? Previously I tried the
following which works well:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="100%" height="100">
<param name="movie" value="swf/safer_central2.swf">

<param name="quality" value="high">
<embed src="swf/safer_central2.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="100%" height="100"></embed>
</object>

Unfortunetely, when I run it through the validator it gives me an few
error messages informing me that the doc type I have used does not
permit <embed>. The DOCTYPE declaration I have used is:

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

Should I use another DOCTYPE declaration? I have tried removing the
<embed> tag but it doesnt work in Firefox, which seems to need the
<embed> tag. It may also be worth noting that I need it to be inline
with XHTML as much as possible.

Burnsy

Jun 13 '06 #1
2 5457
In article <11**********************@p79g2000cwp.googlegroups .com>,
bi******@yahoo.co.uk wrote:
How do I "embed" a flash movie to a web page so that it will validate
with the XHTML transitional W3 validator?


Which is more important the stuff working or validity?

http://weblogs.macromedia.com/access...8/in_search_of
_a.cfm

--
Henri Sivonen
hs******@iki.fi
http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Jun 13 '06 #2
bi******@yahoo.co.uk wrote:
How do I "embed" a flash movie to a web page so that it will validate
with the XHTML transitional W3 validator? Previously I tried the
following which works well:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100">
<param name="movie" value="swf/safer_central2.swf">

<param name="quality" value="high">
<embed src="swf/safer_central2.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="100%" height="100"></embed>
</object>

Unfortunetely, when I run it through the validator it gives me an few
error messages informing me that the doc type I have used does not
permit <embed>. The DOCTYPE declaration I have used is:

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

Should I use another DOCTYPE declaration? I have tried removing the
<embed> tag but it doesnt work in Firefox, which seems to need the
<embed> tag. It may also be worth noting that I need it to be inline
with XHTML as much as possible.


http://www.spartanicus.utvinternet.ie/embed.htm#flash

Note that you have to use <param ... />, because you are using XHTML (I
won't start the discussion, why XHTML is bad, but others may do...).
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
Jun 13 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by dnc28 | last post: by
1 post views Thread by Fabrizio | last post: by
1 post views Thread by Newbie | last post: by
reply views Thread by Dariusz Tomon | last post: by
2 posts views Thread by Tim Dixon | last post: by
1 post views Thread by agileconsultancy | last post: by
3 posts views Thread by earl.bobby | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.