This is a forum where members new and old can come to ask questions and get info and opinions. It is not a place to advertise your business or have other forms of advertising, whether it be in your posts or signature.

All links in the forum will not be indexed by Search Engines and any unapproved forms of advertising or spam will be dealt with accordingly, deleted, and that member's account banned.

Forums

Overview » HTML, XHTML, and DHTML » Flash and Validation
Reply

Flash and Validation

Matt Bailey
Wicked Member



Since: 26 Mar 2003
Posts: 195
Posted 31 Mar 2005 18:48:53

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?... *

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?... *
Dave Thomas
Zone Administrator



Since: 02 Jul 2002
Posts: 1,216
Replied 01 Apr 2005 08:39:47
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>
Dave Thomas
Zone Administrator



Since: 02 Jul 2002
Posts: 1,216
Replied 01 Apr 2005 08:46:11
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>
Matt Bailey
Wicked Member



Since: 26 Mar 2003
Posts: 195
Replied 01 Apr 2005 10:59:34
That's brilliant. The page now validates!

___________________________________
* Sorry... how do you do that again?... *
Dave Thomas
Zone Administrator



Since: 02 Jul 2002
Posts: 1,216
Replied 01 Apr 2005 11:00:42
nice one <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

regards

Dave Thomas
<b>DMX Zone Manager</b>
satheesh Dominic
Member



Since: 24 Apr 2007
Posts: 44
Replied 03 Oct 2009 21:56:59
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

Message
Reply
Follow us on Facebook Follow us on twitter Subscribe to the RSS feed
Activate your free membership today | Login | Currency