473,230 Members | 1,407 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,230 software developers and data experts.

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 5533
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dnc28 | last post by:
Hi! Have a look at these sites. http://www.untitledstudio.com/flash.htm http://www.uniform.net/index2.html Both these sites have a Flash .swf file embedded into a HTML webpage.
1
by: Fabrizio | last post by:
Hi I just would like to insert in my aspx page a swf movie (done with flash 5) Which control i have to add to play the movie on the page thank yo Fabrizio
1
by: Newbie | last post by:
Hi all, Is there any free control to display Flash movie for ASP.NET 2.0? Any helps will be appreciated. Thanks, andy
0
by: Dariusz Tomon | last post by:
Hi I have got the problem with web control displaying flash (swf) object. The problem is connected with the fact that 1-st swf should loads the second one. But it doesn't. That's why I suspects...
2
by: Tim Dixon | last post by:
Hi, Just a quick question... Has anyone used VB.net to play a flash file? and how is it done? All I need to do is get my VB.NET application to play a flash file until it gets to the stop...
1
by: agileconsultancy | last post by:
Hi, I have a Flash Swf file which is continuously updated in terms of data, from the DB using Actiona Script and aspx calls. Well, the question can surely consider only a simple SWF file...
3
by: earl.bobby | last post by:
I'm creating a webserver to run from a CD. I've found http://www.adp-gmbh.ch/win/misc/webserver.html which is my starting block. I've really made two modifications. First adding the appropriate...
1
by: JKB | last post by:
Hello, I'm trying to fetch a php page called (wall.php) that has a swf movie file on it using ajax. I would like this php page to display on my main page (index.php) in a div called (galleryLYR). ...
2
by: rnvipin | last post by:
Hi all, I have made a 1000 x 600 (px) swf movie for a web and I embedded it in HTML. Now the problem is for some screen resolutions above 1024 x 768, the web is aligned to top left. I tried to put...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.