Welcome to WebmasterWorld Guest from 54.166.224.46

Forum Moderators: open

Message Too Old, No Replies

Flash, Embed, and Validating

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

10+ Year Member



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)

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



Hi Tim,

Look into using SWF Object for displaying flash.

dc

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

10+ Year Member



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

WebmasterWorld Senior Member 10+ Year Member



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)

10+ Year Member



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)

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



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month