Welcome to WebmasterWorld Guest from 23.20.8.182

Forum Moderators: open

Message Too Old, No Replies

Flash, Embed, and Validating

     
3:44 pm on Jan 17, 2009 (gmt 0)

Full Member

10+ Year Member

joined:Apr 9, 2003
posts:336
votes: 0


Hi,

I'm trying to validate my HTML pages but am having problems with the Flash quizzes I created. These were created using Adobe Captivate and they work fine, no problems. But I'm using a validator tool with FireFox and it says "<embed> is not approved by W3C".

I've done some reading on the subject but can't really understand what I'm supposed to do. Hopefully someone here can shed some light (i hope). Here is the flash code in the HTML page:

<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="550" height="225" title="Mini Quiz">
<param name="movie" value="../../../media/quiz/quiz1.swf" />
<param name="quality" value="high" />
<embed src="../../../media/quiz/quiz1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="225"></embed>
</object>

Any ideas?

Tim

6:34 pm on Jan 17, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 30, 2003
posts:3719
votes: 0


Hi Tim,

Look into using SWF Object for displaying flash.

dc

6:57 pm on Jan 17, 2009 (gmt 0)

Full Member

10+ Year Member

joined:Apr 9, 2003
posts:336
votes: 0


Thanks for the reply, but could you be more specific?
8:16 pm on Jan 17, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 29, 2002
posts:980
votes: 0


SWF Object [code.google.com] is a widely used method for embedding Flash in web pages. It doesn't use <embed>, so your code will validate.
11:50 pm on Jan 17, 2009 (gmt 0)

Full Member

10+ Year Member

joined:Apr 9, 2003
posts:336
votes: 0


Thanks for the info and the link. This seems like a lot of work to embed something. I just don't get why Adobe Captivate outputs in a format that doesn't validate properly. Looks like I have a lot of reading to do!
11:46 am on Jan 18, 2009 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10553
votes: 13


the problem is the combination of a deprecated tag and cross-browser compatibility problems.
by using javascript to check for flash support and write the necessary tags for that user agent it is possible to create code that validates html strict or xhtml.