Flash components working with LightBox 2.0 (AS3)
Author: Digicrafts Last Update: 18/08/2008
1. Download lightbox 2.04 and FlashLightBoxIjector
http://www.huddletogether.com/projects/lightbox2/
http://www.bram.us/projects/flashlightboxinjector/
2. Modify the lighbox js (for 2.04 version only)
http://www.bram.us/2008/04/15/flashlightboxinjector-12-and-lightbox-204/
3. Place the lightbox script and FlashLightBoxIjector in your working dir.
4. Setup a working CurveMenu, PhotoFlip or FotoQueue. Ang give an instance name e.g menu_mc.
5. Add the script in the frame which contains the component.
import com.digicrafts.events.*;
function eventHandle(e:ItemEvent):void {
ExternalInterface.call("myFlashLightBoxInjector.reset()");
ExternalInterface.call("myFlashLightBoxInjector.appendElement", e.item.source + "", e.item.title + "", "ID_NAME" + "", "SET" + "");
ExternalInterface.call("myFlashLightBoxInjector.updateImageList");
ExternalInterface.call("myFlashLightBoxInjector.start", "ID_NAME" + "");
}
menu_mc.addEventListener(ItemEvent.CLICK,eventHandle);
6. Publish your flash project and upload to the server.
|
|
| Learn how to connect LightBox 2.0 script with our flash components. |
|
Compatibility:
Skill Level: |