related to issue http://drupal.org/node/439978

Loading the lightbox hides the SWF below.
Upon closing the lightbox, the SWF reloads.

The movie below, in our case is the main site navigation. Reloading after every lightbox load is a big problem for us.
You can see what I mean here: http://thespringweddingshow.com/home-flash
[please note: a few browser-targetted bugs to squash still]

I really hadn't anticipated this behaviour. Any help that can be offered would be much appreciated, as the site go-live is pretty much hanging on our need to keep running the SWF underneath the lightbox.

Comments

adixon’s picture

Lightbox is a javascript thing, so presumably clicking the go away box is triggering some kind of page reload or at least re-display that's restarting your flash.

You might fix the issue by converting the lightbox into a new browser window, but that might be ugly in other ways.

You probably need to figure out exactly how the flash is interacting with the go away click on the lightbox ....

stella’s picture

Priority: Critical » Normal
Status: Active » Closed (works as designed)

Well actually lightbox2 hides all flash videos in the background because otherwise those flash objects appear over the lightbox display in certain browsers - the z-index is ignored. So I'm not sure there is a good fix for this. You could try modifying the lightbox.js code to remove the call that hides background flash objects, but you'll prob run into the other issue I identified, which imo is a more important.

As such, I don't think there is a solution for your problem, and am not willing to modify the lightbox2 behaviour at this time, sorry.

Cheers,
Stella

radj’s picture

I encountered this, too and am sad to know that there is no known workaround to make them both coexist happily. Sigh. Just to discuss about z-index, do you think it's Flash stealing the z-index?

andrew_mallis’s picture

In order to work around this, I implemented thickbox for my modular pop-ups. Lightbox2 still provides gallery functionality within them. Thickbox had issues in IE 7, though, so I conditionally implemented Lightframes with Lightbox2 there. You can check out the source on http://thespringweddingshow.com to see what I did.

Crisis averted and solution found in time for launch, I kinda moved on, but am now wondering if there is some clue in thickbox's implementation that may be useful here.

RedTop’s picture

Version: 6.x-1.9 » 6.x-1.x-dev

I use a swf image rotator in my header so this feature is a bit disappointing for me as well and a potential "deal breaker".

I know the Popups API module creates overlays without removing swf files... and there seem to be no problems with swf being rendered on top of the overlay?

RedTop’s picture

Just a quick note:

stumbled upon the same problem with Popup API modal comment forms and flowplayer. The flowplayer swf was overlapping the popup. Found the solution here: wmode configuration added. Set attribute wmode to "opaque" (of the flowplayer swf) and that will fix it. I'm quite sure it should fix the same issues with lightbox (ie not a lightbox issue, but rather an issue with the default swf settings (wmode="window")).

Perhaps you could add an option to remove swf files rather than simply removing them by default?