Active
Project:
dfgallery
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jul 2009 at 16:41 UTC
Updated:
22 Jul 2009 at 02:53 UTC
Flash needs the wmode set to opaque as a param and in the embed code to surrender its position in the zindex as top. in the tpl file. Otherwise the flash becomes the topmost object and obscures suckerfish menus, interferes with Lightbox etc. , you need to set as follows:
<?php
// $Id: dfgallery_flash.tpl.php,v 1.1 2009/03/06 08:14:13 eastcn Exp $
?>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="<?php print $flash['width'];?>" height="<?php print $flash['height'];?>">
<param name="allowFullScreen" value="true" />
<param name="movie" value="<?php print $flash['swf'];?>" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="FlashVars" value="xmlUrl=<?php print $flash['url'];?>" />
<embed wmode="opaque" src="<?php print $flash['swf'];?>" quality="high"width="<?php print $flash['width'];?>" height="<?php print $flash['height'];?>" FlashVars="xmlUrl=<?php print $flash['url'];?>" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Better yet, make it so the user can configure the module with all three paramaters to suit their needs.
Comments
Comment #1
eastcn commentedgood idea
thanks