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>
 
  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 >
<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>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html lang="en">
<head>
<title>Flash with OBJECT elements</title>
</head>
<body>
<p>
<object classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="300" height="120">
<param name="movie" value="www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<!--[if !IE]> <-->
<object data="www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.swf"
width="300" height="120" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<param name="pluginurl" value="www.macromedia.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object>
</p>
</body>
</html>
</font id=blue></font id=code></pre id=code>
hope that helps m8.
regards
Dave Thomas
<b>DMX Zone Manager</b>
 
  <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>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html lang="en">
<head>
<title>Flash with OBJECT elements</title>
</head>
<body>
<p>
<object classid="clsid
codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="300" height="120">
<param name="movie" value="www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<!--[if !IE]> <-->
<object data="www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.swf"
width="300" height="120" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<param name="pluginurl" value="www.macromedia.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object>
</p>
</body>
</html>
</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?... *
  ___________________________________
* 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>
 
  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
  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


