# Lightbox with AS3

**URL:** <https://forum.kirupa.com/t/lightbox-with-as3/268293>\
**Category:** flash\
**Created:** [August 12, 2008, 10:53am UTC](https://forum.kirupa.com/t/lightbox-with-as3/268293 "2008-08-12T10:53:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricky55](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ricky55](https://forum.kirupa.com/u/Ricky55)\
**Post date:** [August 12, 2008, 10:53am UTC](https://forum.kirupa.com/t/lightbox-with-as3/268293/1 "2008-08-12T10:53:27Z")

</div>

Been using Lightbox ([http://www.huddletogether.com/projects/lightbox/](http://www.huddletogether.com/projects/lightbox/)) to enlarge my images, works fine with AS2 but I just can’t get it working with AS3.

Can you see anything wrong with the code:

```auto

var openImage:URLRequest = new URLRequest("javascript:flashLightbox('images/jenson.jpg','Jenson in Action');");

test_mc.addEventListener(MouseEvent.CLICK, onButtonClick);

function onButtonClick(event:MouseEvent):void
{
	navigateToURL(openImage);
}

test_mc.buttonMode = true;

```
