Forums

This topic is locked

Flash and Validation

Posted 31 Mar 2005 18:48:53
1
has voted
31 Mar 2005 18:48:53 Matt Bailey posted:
I tried validating one of my pages today and it had a problem with a Flash movie on the page. Will putting Flash on a page cause it not to validate, or can something be done?

___________________________________
* Sorry... how do you do that again?... *

Replies

Replied 01 Apr 2005 08:39:47
01 Apr 2005 08:39:47 Dave Thomas replied:
quote from a macromedia guy:

Depends on what you're validating against. The HTML 4.0+ spec doesn't like
the "EMBED" tag, while the various realworld browsers do.

If you're validating against the browsers then a nested OBJECT/EMBED
structure is the way to go. If you're validating against the spec then that
will introduce conflicts with the various realworld browsers.

regards

Dave Thomas
<b>DMX Zone Manager</b>
Replied 01 Apr 2005 08:46:11
01 Apr 2005 08:46:11 Dave Thomas replied:
apparantley this is the way to go &gt;

<b>use one object element for IE and then a nested embed element for everything else</b>

<pre id=code><font face=courier size=2 id=code><font color=blue>
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
&lt;title&gt;Flash with OBJECT elements&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;
&lt;object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="300" height="120"&gt;
&lt;param name="movie" value="www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.swf"&gt;
&lt;param name="quality" value="high"&gt;

&lt;param name="bgcolor" value="#FFFFFF"&gt;
&lt;!--[if !IE]&gt; &lt;--&gt;
&lt;object data="www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.swf"
width="300" height="120" type="application/x-shockwave-flash"&gt;
&lt;param name="quality" value="high"&gt;
&lt;param name="bgcolor" value="#FFFFFF"&gt;
&lt;param name="pluginurl" value="www.macromedia.com/go/getflashplayer"&gt;
FAIL (the browser should render some flash content, not this).
&lt;/object&gt;
&lt;!--&gt; &lt;![endif]--&gt;

&lt;/object&gt;
&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</font id=blue></font id=code></pre id=code>

hope that helps m8.

regards

Dave Thomas
<b>DMX Zone Manager</b>
Replied 01 Apr 2005 10:59:34
01 Apr 2005 10:59:34 Matt Bailey replied:
That's brilliant. The page now validates!

___________________________________
* Sorry... how do you do that again?... *
Replied 01 Apr 2005 11:00:42
01 Apr 2005 11:00:42 Dave Thomas replied:
nice one <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

regards

Dave Thomas
<b>DMX Zone Manager</b>
Replied 03 Oct 2009 21:56:59
03 Oct 2009 21:56:59 satheesh Dominic replied:
You may also try fixing this problem using a JavaScript function to embed the swf files in XHTML.

I have already written an article on this. You may check it at
www.tutorials2learn.com/?p=391.

This method will allow your pages to be validated as per w3c standards

Reply to this topic