Forum Moderators: open

Message Too Old, No Replies

Flash is not valid HTML 4.0 Transitional

There is something wonrg in the embed tag

         

tomda

9:41 am on May 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

I have a flash component in my webpage

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"
id="map" width="449" height="333"> <param name="movie" value="url/images/map.swf"><param name="quality" value="high"><param name="bgcolor" value="#FAEEA9">
<embed name="map" src="url/images/map.swf" quality="high" bgcolor="#FAEEA9" width="449" height="333" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>

Now, where I remove the <embed></embed>, the script is valid HTML 4.0 Transitional - BUT Flash does not appear on Netscape and Mozilla!

When I leave the <embed></embed>, here is the message from W3C:

Line xx, column ****: there is no attribute "SRC"

..."bgcolor" value="#FAEEA9"><embed src="url/images/..
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.

Any help?

tedster

10:12 am on May 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try this link - Macromedia's reprint of the Flash Satay article:

[macromedia.com...]

I think you'll find the answer right there. And who better to give the answer for a Flash issue than Macromedia.

tomda

10:28 am on May 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, the first prob is that I use Swish2.0 and not Flash.

I have tried to insert the action script but I have only Javascript or FS command insertion.

Has anyone of you manage to do this using Swish.

Thanks
Tommy

pixelkat

9:24 pm on May 29, 2004 (gmt 0)

10+ Year Member



any time a web format needs scalability, it is wise to use a strict dtd. since anything Flash can be played on any platform from cell phones to electronic billboards, it makes sense that using a relaxed, transitional mode DTD would invite problematic results on non-desktop platforms, which ultimately could tarnish a company's reputation in the market place if problems persisted. my guess is that Macromedia might require Swish to use a strict-mode DTD to ease portablity to other platforms.

one thing you can say about Flash, it's pretty reliable in its display on any platform that supports the Flash player. you name it...kiosks, handhelds, interactive television screens, high-def TV, even a bevy of cell phone screens. It displays the same in every situation, albeit if sometimes requiring the hubble telescope to read the text in flash movies on a 1.5 inch cell phone screen!

transitional DTDs were intended for legacy browsers developed before w3c standards were implemented, NOT for browsers who refuse to play by the rules!

just my 2.5 cents worth!
;)

kr

pixelkat

9:25 pm on May 29, 2004 (gmt 0)

10+ Year Member



oops, make that browsers, players and plug-ins who don't play by the rules!

kr