How to play swf files in lightbox

rashmi.cms - May 18, 2009 - 15:15

I need to display swf files in lightbox. what process should i follow for this? I had enabled video support settings but it didn't work for me. Does this need any flash player installation too? support needed.

=-=

VeryMisunderstood - May 18, 2009 - 15:17

yes you would need a module that handles the playing of flash. investigate the swftools.module

This module works perfectly

rashmi.cms - May 19, 2009 - 10:13

This module works perfectly for all type of media files, but still it doesn't provide any solution to display media files in lightbox.

=-=

VeryMisunderstood - May 19, 2009 - 12:02

AFAIK, there is NO switch to tell video to be used in lightbox, you have to theme it in using a custom.tpl.php file and adding the proper div or style

better late than never.

rpdesigns - June 8, 2009 - 18:11

I just found some info on the subject...
don't know where to post it (here seems good)

This is a JS extension for Lightbox2 for .swf files:
http://code.google.com/p/flashinlightbox/

also there are alternatives to lightbox which support .swf like shadowbox for Drupal.
http://drupal.org/project/shadowbox

and you could always create an HTML page with flash embedded, and use the iframe approach e.g.
<a href="sites/MyFlash.html" rel="lightframe">text or image here</a>
more about iframe approach:
http://drupal.org/node/252260

 
 

Drupal is a registered trademark of Dries Buytaert.