Forum Moderators: open

Message Too Old, No Replies

W3C Validation of Flash Object code?

Why are my Flash objects returned with many error messgaes?

         

jrivesj

6:53 pm on Nov 23, 2005 (gmt 0)

10+ Year Member



I am attempting to get my pages totally "up to snuff" according to the W3C, but their validator is returning error messages regarding the code in my FLash objects such as shown below:

*****************

Error Line 28 column 14: there is no attribute "TYPE".
<embed type="application/x-shockwave-flash"
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), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

&#9993;

Error Line 29 column 15: there is no attribute "PLUGINSPAGE".
pluginspage="http://#*$!#*$!xx.xxx/go/getflashplayer"
&#9993;

Error Line 30 column 9: there is no attribute "WIDTH".
width="760" height="75"
&#9993;

Error Line 30 column 22: there is no attribute "HEIGHT".
width="760" height="75"
&#9993;

Error Line 31 column 8: there is no attribute "NAME".
name="navbar_2005" src="navbar-2005.swf"
&#9993;

Error Line 31 column 26: there is no attribute "SRC".
name="navbar_2005" src="navbar-2005.swf"
&#9993;

Error Line 32 column 11: there is no attribute "BGCOLOR".
bgcolor="#E0E0E0" quality="high"
&#9993;

Error Line 32 column 29: there is no attribute "QUALITY".
bgcolor="#E0E0E0" quality="high"
&#9993;

Error Line 33 column 9: there is no attribute "WMODE".
wmode="transparent"
&#9993;

Error Line 34 column 17: there is no attribute "SWLIVECONNECT".
swliveconnect="true" allowscriptaccess="samedomain"
&#9993;

Error Line 34 column 42: there is no attribute "ALLOWSCRIPTACCESS".
swliveconnect="true" allowscriptaccess="samedomain"
&#9993;

Error Line 35 column 2: element "EMBED" undefined.
></embed>
You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.

&#9993;

Error Line 54 column 2: element "EMBED" undefined.
></embed>
&#9993;

Error Line 146 column 2: element "EMBED" undefined.
></embed>
&#9993;

Error Line 164 column 2: element "EMBED" undefined.
></embed>

*************

Your help will be greatly appreciated.

James

Richard_N

8:14 pm on Nov 23, 2005 (gmt 0)



try this

[webmasterworld.com...]

Richard_N

8:15 pm on Nov 23, 2005 (gmt 0)



Oh and google "flash satay" for an explanation of the method used.

jrivesj

8:44 pm on Nov 23, 2005 (gmt 0)

10+ Year Member



Thanks - I'll pursue this further. Just FYI, I use Swish.max to generate my Flash movies, not that I suppose that matters...

Jim

Richard_N

11:00 pm on Nov 23, 2005 (gmt 0)



no makes no difference in validation although swish produces bloated files (at least used to, have not used in in years) as it keyframes every frame.

jrivesj

2:35 am on Nov 24, 2005 (gmt 0)

10+ Year Member



I think Swish has been improved a lot - in any event, I only use Flash for little accents to my HTML site...

Thanks for the reply.

Jim

whoisgregg

12:50 am on Nov 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm pretty sure it's okay at WebmasterWorld to link to Macromedia's article about the Flash Satay method of embedding flash [macromedia.com]. (It's the ALA or author's links that might get nuked.)