Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

validating flash

10:05 am on Aug 2, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:May 4, 2004
votes: 0

when trying to validate an html with a flash movie i get plenty of errors like: is no attribute "SRC", there is no attribute "WMODE", there is no attribute "WIDTH"

Im not using frames on my site. should the doctype be changed? ive read a post on another site where someone wrote an external javascript to the page, but surely that is worse?

code + w3 explanation below. im not (necessarily) asking to fix my code, just wondering what the deal is with validating flash

<!-- start gallery -->
<div id="gallery">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="100%" id="viewer" align="middle">
<param name="movie" value="viewer.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="wmode" value="transparent"/>
<embed src="viewer.swf" wmode="transparent" width="100%" height="100%" align="middle" quality="high" scale="noscale" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
<!-- end gallery -->

explanation by W3 is: "You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute)"

10:34 am on Aug 2, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 15, 2004
votes: 0

I know for sue that the <embed> tag you use plus everything that it contains (wmode e.g.) is not w3 compliant and therefore generates errors.

Please read about the "Satay method" to see what you can use instead:

Go to google and search for "satay method". The first link you'll get is the one you need to click. Check out their solution

10:40 am on Aug 3, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 27, 2003
votes: 1

I wouldn't worry too much about the garbage html code Flash generates. Much of it can be deleted safely without affecting the movie within the HTML page.
12:40 pm on Aug 3, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:May 4, 2004
votes: 0

ive read the satay method and most of the code can indeed be stripped. however, to make it validate 100% i need to alter the flash code which im not able to do, its a free image viewing tool and the maker has prevented people from opening it. perhaps ill point him to this thread and the satay method

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members