I have a flash gallery that displays a lightbox of the image when the thumbnail is clicked.

http://greenbrierfarms.com/drupal/gallery

user/pswd to access this directory is gbf/gbf.

When the lightbox image is closed the flash reloads. This happens in chrome, ff and oddly enough, works properly in ie.

On the original html site http://greenbrierfarms.com/gallery.html , I used jquery-lightbox-0.5 and it worked without reloading the flash in all browsers.

I assume this is an issue with lightbox2, but not 100% on that.

Any ideas would be helpful.

Comments

macdonaldj’s picture

Priority: Minor » Normal
macdonaldj’s picture

anyone? bueller?

mikerz’s picture

I'm having this issue too.

Please, any help?

One difference between me and macdonaldj is that I'm calling custom js from within flash...

this is my js:

function addLink(link){
$('#hidden-holder').append(link);
Lightbox.initList();
}
function clickLink(nid){
$('#dynamic-link-'+nid).click();
}

and this is a sample link being sent to the js (I do it this way, because my view generates a link like this anyway; I just modify it by adding the id and send):

Pops up fine.. but totally unloads flash on reload. This sucks for me because I have a 3d view of a whole bunch of nodes. Every time it closes, the flash view re-initializes... re-connects to drupal... reloads the data... and re-initializes the environment.

alexkessler’s picture

Same here.

Flowplayer as audio player and album cover via lightbox.

Everytime someone listens to a track and wants to take a closer
look at the album cover, the player stops until the lightbox is closed and
then reloads completely.

mikerz’s picture

Hey guys, I figured I'd just try to investigate on my own...

Go to the lightbox module folder, and then the js folder
Open up lightbox.js,

replace line 276
Lightbox.toggleSelectsFlash('hide');
with
Lightbox.toggleSelectsFlash('show');

It's manually disabling the flash on purpose. For our purposes, it's not helpful...

macdonaldj’s picture

awesome, mike.

I ended up converting my flash gallery to jquery.

Architeck’s picture

I can confirm that the workaround in #5 resolved my issues with lightbox2 and the soundmanager2 module.

I propose we add an option in the "Advanced settings" fieldset to expose the 'toggleSelectsFlash' setting.