Add component to stage and give it a instancename.
Add this peace of code to the root:
import mx.events.EventDispatcher;
EventDispatcher.initialize(this.lightbox);
Modify the parameters in panel.
For instructions on how to modify parameters dynamically:
orgw:Number (Set the original stage width)
orgh:Number (Set the original stage height)
autoplay:Boolean (If it should autoplay videos)
screensize:Boolean (If it should resize according to screen resolution)
Upload get_t.php in same directory as lightbox.
Redy to use!
Call the public function like this:
lightbox.init("pic1.jpg!pic2.jpg!pic3.jpg!http://www.youtube.com/watch?v=_OBlgSz8sSM", 2);
Seperate the filenames with a '!'
the second value is set which file should be loaded at start. If it's unset default value is 1.