Needs review
Project:
SWF Tools
Version:
6.x-2.5
Component:
SWF Tools
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2007 at 09:40 UTC
Updated:
11 Oct 2010 at 04:19 UTC
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
Comment #1
Stuart Greenfield commentedSetting 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.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
rpath commentedI'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.
Comment #4
ron williams commented