English  Italiano  Français  Español  Dansk  Deutsch  Deutsch  Português  Suomi 
Video Lightbox

In Firefox and Safari popup video player does not overlay above a Flash object

Dec 13, 2011

Q: We are using the free version of your lightbox for a website and are interested in purchasing the business version.

We are having a problem with the free version that I'm hoping you can resolve before we purchase the business edition.

In Firefox and Safari the video overlay does not overlay above a Flash object.
Do you know how to resolve?

A: You should add "opaque" parameter for <object> and <embed> tags.

See, how you should install flash on your pages.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
height="150" width="800">
<param name="movie" value="2008 flash.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<embed src="flash_files/2008%2520flash.swf" quality="high" wmode="opaque"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" height="150" width="800">
</object>



Video lightbox will overlap flash correctly in that case.

If your flash is created with use of AC_FL_RunContent() function you should open
AC_RunActiveContent.js file, find AC_Generateobj function and add opaque parameters:

function AC_Generateobj(objAttrs, params, embedAttrs)
{ 
  var str = '';
  if (isIE && isWin && !isOpera)
  {
    str += '<object ';
    for (var i in objAttrs)
    {
      str += i + '="' + objAttrs[i] + '" ';
    }
    str += '>';
    str += '<param name="wmode" value="opaque">';
    for (var i in params)
    {
      str += '<param name="' + i + '" value="' + params[i] + '" /> ';
    }
    str += '</object>';
  }
  else
  {
    str += '<embed ';
    for (var i in embedAttrs)
    {
      str += i + '="' + embedAttrs[i] + '" ';
    }
    str += 'wmode="opaque"> </embed>';
  }

  document.write(str);
}

Related