I almost never use Flash, but when I do it is always invalid to embed the code. A quick way around this is to use swfobject. A JavaScript library that intends on replacing the flash detector script by adobe.
It is so easy to implement, and there are no files that you have to host. My favorite benefits include
- 1 Small external JS file to load (hosted by google)
- Easy JavaScript API, 1 command!
- Cross browser support
- Error message / degradation for unsupported flash users
HEAD:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("mediaplayer.swf", "solutions-video", "258", "220", "9.0.0","expressInstall.swf",{settings:"assets/solutions.xml"},{allowFullScreen:"true",quality:"high",bgcolor:"#000000",allowScriptAccess:"#sameDomain"});
</script>HTML:
<p id="solutions-video">The video requires flash to play</p>
So become a little more standards compliant today and start including swfobject on your web sites.
