homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

validating flash

10+ Year Member

Msg#: 254 posted 10:05 am on Aug 2, 2004 (gmt 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+ Year Member

Msg#: 254 posted 10:34 am on Aug 2, 2004 (gmt 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


WebmasterWorld Senior Member 10+ Year Member

Msg#: 254 posted 10:40 am on Aug 3, 2004 (gmt 0)

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.


10+ Year Member

Msg#: 254 posted 12:40 pm on Aug 3, 2004 (gmt 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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved