Embedding Flash In A Strict Compliant Environment
Posted by C. Dowd on February 22, 2008
Ever use those little embed tags to post flash? Well, they’re not compliant.
I have to build a website for my MULT 109 class, and since I’m in WEBT I decided that I would try to make every page strict compliant. Then I got to my flash game page. What a nightmare!!!
Anyway, I did an exhaustive Google search for an answer, and I found these articles:
- The Standards-Compliant Flash Object of Desire
- Flash Satay: Embedding Flash While Supporting Standards
- SWFObject: Javascript Flash Player detection and embed script
The third article is the one I finally went with. It was a bit of a bear, since it involves javascript, and CSS for layout, rather than just a simple cut and paste embed script, but wow it works!
Here’s my Valid XHTML 1.0 Strict webpage for proof. There are a couple of CSS issues I’m still working on, but the page is valid, AND the flash works in both Firefox and IE. I think that’s worth a little extra credit.
This entry was posted on February 22, 2008 at 12:45 pm and is filed under articles, design, examples, javascript, tutorials, web standards. Tagged: embed, flash, javascript, valid. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
jrosero said
I never thought about those tags. One would assume that they are compliant since they are auto generated but I guess that isn’t the case. Ill keep this in mind when I get around to putting up flash content on my own site.
thanks
miisronhm said
I went to the site and I just posted my last blog about flash and the web. Thank you for thelink (I downloaded it)
Jean
webt 143 Roni’s class
ultimoAdios said
Wonderful!
Flash Embed XHTML Compliant « Joomla! Newyork said
[...] Here is a resource on embedding swf object compliment from http://blog.deconcept.com that has been tested as XHTML compliant by http://webt.wordpress.com in the entry titled “Embedding Flash In A Strict Compliant Environment”. [...]
ultimoAdios said
Well, well, it’s been a while since I passed by. Nice to say hello once in a while. Charged to Social Networking. Glad you still here.
C. Dowd said
Wow, I just typed “strict compliant” into Google, and I was surprised to see that my old 143 post was the number 1 result! Neat.