# Embed / detect flash not working

**URL:** <https://forum.kirupa.com/t/embed-detect-flash-not-working/304145>\
**Category:** Uncategorized\
**Created:** [February 2, 2010, 11:25am UTC](https://forum.kirupa.com/t/embed-detect-flash-not-working/304145 "2010-02-02T11:25:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m00nb00ts](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@m00nb00ts](https://forum.kirupa.com/u/m00nb00ts)\
**Post date:** [February 2, 2010, 11:25am UTC](https://forum.kirupa.com/t/embed-detect-flash-not-working/304145/1 "2010-02-02T11:25:08Z")

</div>

I’m using this method of embedding, detecting and/or providing alternative content for a flash movie, but the movie doesn’t play when flash is installed.  
The two files “swfobject.js” and “heliLog2\_small.swf” are in the same folder as the html file.

Can anyone spot my error?  
thanks in advance

```auto
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <script type="text/javascript" src="swfobject.js"></script>
        <script type="text/javascript">
            var flashvars = {};
            var params = {};
            params.menu = "false";
            params.scale = "noscale";
            var attributes = {};
            attributes.name = "helilogs";
            swfobject.embedSWF("heliLog2_small.swf", "flashDiv", "191", "100", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
        </script>
    </head>
    <body>
        <div id="flashDiv">
                        <a href="http://www.adobe.com/go/getflashplayer">
                <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
            </a>
        </div>
    </body>
</html>

```
