Webgirl Posted May 2, 2010 Report Share Posted May 2, 2010 Hi up to now I didnt bother about how many errors I get thru w3 Validator but I want to change that. This is how I used to embed a flash file <object data="mytime3.swf" width="418" height="220" type="application/x-shockwave-flash"> <param name="movie" value="mytime3.swf"> <param name="quality" value="best"> <param name="bgcolor" value="#666666"> <embed src="mytime3.swf" width="418" height="220"> </embed> </object> But Im getting all the errors one can think of from the Validator Any help Quote Link to comment Share on other sites More sharing options...
newseed Posted May 2, 2010 Report Share Posted May 2, 2010 When it comes to flash, you will have to live with the errors. Quote Link to comment Share on other sites More sharing options...
Webgirl Posted May 2, 2010 Author Report Share Posted May 2, 2010 Does that mean that the Validator will always show errors - there is no other way without errors - that realy sounds weird. Quote Link to comment Share on other sites More sharing options...
newseed Posted May 3, 2010 Report Share Posted May 3, 2010 embed is not a valid tag. Other attributes could be cleaned up and rid of many errors but even still it's problematice when it comes to validating. You can try this method (a bit dated) Flash Satay or this. Another one you search and try is SWFObject. Some people have had success but not without trial and error. It could take a chunk of your time to get it to work across all browsers. From my perspective as a developer, it's not worth the time. Quote Link to comment Share on other sites More sharing options...
Wickham Posted May 3, 2010 Report Share Posted May 3, 2010 You can get a video code to validate if you leave out the embed tag and use the object tag with <object type="application/x-shockwave-flash"........ as item 2 here:- http://www.wickham43.net/flashvideo.php but computers need Adobe Flash Player already installed so older browsers without Flash will get a popup asking them to install it, causing delay. That's why many major sites still use the object tag with a classid <div style="width: 500px; margin: auto;"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"......... and the nested embed tag which allows older browsers to play the video without waiting. Quote Link to comment Share on other sites More sharing options...
coollew Posted May 3, 2010 Report Share Posted May 3, 2010 give this a shot it is from a resource page written by one of our members. very cool! Quote Link to comment Share on other sites More sharing options...
Webgirl Posted May 3, 2010 Author Report Share Posted May 3, 2010 Somebody suggested that I should take embed out and after that the Validator didnt show any errors - thanks for your replies. You're cool. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.