Jump to content


Page Validation With Flash


1 reply to this topic

#1 Diaz

    Young Padawan

  • Members
  • Pip
  • 76 posts

Posted 20 September 2007 - 09:46 AM

HI guys,

I'm currently just finishing off a site for a client.

Now the site validates perfectly fine XHTML Transitional etc without the flash element.

When I add the flash element I get 12 errors all caused by the flash

Such as:

No attribute: wmode
No Attricbute: quality

etc.

Now i just used the publish html code that flash publishes with as i'm not a flash person and this is the first time i've had to use flash.

Is there anyway to make this code so it validates?

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=		"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="831" height="175" id="mwd_flash" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="mwd_flash.swf" /><param name="wmode" value="transparent" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="mwd_flash.swf" wmode="transparent" quality="high" bgcolor="#ffffff" width="831" height="175" name="mwd_flash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
				</object>

Thanks guys.

#2 Hayden

    P2L Jedi

  • Members
  • PipPipPip
  • 717 posts
  • Gender:Male
  • Location:Texas

Posted 20 September 2007 - 09:25 PM

http://alistapart.co...cles/flashsatay

Quote

<embed> is not part of the XHTML specification and will prevent your page from validating. It is used by Netscape and similar browsers for displaying Flash movies. Parameters are passed within the element as name/value attribute pairs.

Also, you generally don't put bgcolor="#ffffff" in the object code. Do it in the flash app or wrap it in a div and do the background that way.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="831" height="175">
	<param name="movie" value="mwd_flash.swf" />
	<param name="wmode" value="transparent" />
	<param name="quality" value="high" />
	<embed src="mwd_flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="831" height="175"></embed>
</object>
I got 12 errors using that and they were all in that last line <embed>

Edited by SpatialVisionary, 20 September 2007 - 09:27 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users