This evening I will be showing you how to execute my Lightbox++ script from a Flash movie. You’re not only limited to Lightbox++, as you can use this tutorial with any Lightbox scripts based on Lokesh Dhakars Lightbox class. How is it done? Simple really. We setup something similar to what .NET programmers refer to as a Delegate. This will all be explained in a minute, so lets begin.
One of my contributers to my Lightbox++ post (meujovem), had asked me if it was possible to detect Flash movie dimensions automatically. So I thought to myself this would be a good feature to add to Lightbox++ so you don’t have to specify the width and heights in your URLs when using Flash movies with the script. I did some research and messed around with a few test scripts, and I found out it is in fact possible.
Lightbox++ is a modified version of Lokesh Dhakars excellent Lightbox script which not only retains the originally Lightbox functionality, but lets you embed Flash movies.
The first iteration dubbed SWFBox, worked well but had browser compatibility problems specifically with Mac, and didn’t retain the ability to use original Lightbox functionality. This has all been resolved with Lightbox++ and you can read more about it by hitting the jump below.