<p>There are too many method for embedding flash in html, which way is the best?
Requirements are:</p>

<ul>
<li>Cross-browser support</li>
<li>Support for alternative content (if flash is not supported by the browser)</li>
<li>Possibility to require a specific version of the flash player</li>
</ul>

<p>I have been reading about <a href="http://code.google.com/p/swfobject/wiki/documentation" rel="nofollow noreferrer">SWFobject</a>, has anyone used it/tested? </p>

In a project I work on we use SWFobject which works like a charm, it allows you to check for a specific version and also display alternative content if flash is not supported.
```
```
var fn = function() {
    if(swfobject.hasFlashPlayerVersion("9.0.115"))
    {
        var att = { data:"flash.swf", width:"y", height:"x" };
        var par = { menu: "false", flashvars: "" };
        signUp = swfobject.createSWF(att, par);
    }
}
swfobject.addDomLoadEvent(fn);
```
```