After some research i implemented a change to the "swftools_swftools_embed" method to make its output standards compliant (using the Daniel Duris method) and work in all major browsers. I replace all HTML output of this function with this:

    $html = '
        <div class="SWFTools">
            <object type="application/x-shockwave-flash" data="'.$P['src'].'" '.$width_attr . $height_attr . $id .'>
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="movie"   value="'. $P['src'] .'" />
                <param name="wmode"   value="'. $P['wmode']   .'" />
                <param name="bgcolor" value="'. $P['bgcolor'] .'" />
                <param name="scale"   value="'. $P['scale']  .'" />
                <param name="quality" value="'. $P['quality'] .'" />
                <param name="align"   value="'. $P['align'] .'" />
                <param name="FlashVars"  value="'. $P['flashvars']  .'" />
            </object>
        </div><!-- .SWFTools -->
    ';

see: http://alex.tsd.net.au/cpill/2006/08/29/flash-as-a-background-and-the-ob...
for references

Comments

Stuart Greenfield’s picture

Status: Active » Fixed

Setting to fixed as new releases of SWF Tools 5.x-2.0 and SWF Tools 6.x-1.1 are now available which address this issue.

Note - for SWF Tools 5 you need to use SWF Object 2 embedding to produce compliant code.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

rpath’s picture

Status: Closed (fixed) » Needs review

I've recently been working with SWF Tools 6.x-2.5 and the module code appears not to include this 'type="application/x-shockwave-flash"' update/correction.

ron williams’s picture

Version: 5.x-1.1 » 6.x-2.5