# Lightbox and XML gallery AS3

**URL:** <https://forum.kirupa.com/t/lightbox-and-xml-gallery-as3/308633>\
**Category:** flash\
**Created:** [April 27, 2010, 1:50pm UTC](https://forum.kirupa.com/t/lightbox-and-xml-gallery-as3/308633 "2010-04-27T13:50:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pafke](https://avatars.discourse-cdn.com/v4/letter/p/5fc32e/32.png) [@Pafke](https://forum.kirupa.com/u/Pafke)\
**Post date:** [April 27, 2010, 1:50pm UTC](https://forum.kirupa.com/t/lightbox-and-xml-gallery-as3/308633/1 "2010-04-27T13:50:20Z")

</div>

Hi everybody,  
I’m currently working on a project that has a flash gallery that makes use of XML.

Now the current code let’s the url open in a new webpage, I want to make use of a lightbox to put the url OVER the original.

So this is my code that opens a new url:

function tn\_click(e:MouseEvent):void  
{  
var mc:MovieClip = MovieClip(e.target);  
current\_no = parseInt(mc.name.slice(11,13));  
navigateToURL( new URLRequest( flashmo\_tn\_list[current\_no].url ),  
flashmo\_tn\_list[current\_no].target );  
}

this code refers to an XML file where I use \<url\>groot/flashmo\_192\_color\_art\_groot.jpg\</url\> to define what to open when clicking on the thumbnails.

My question is, how do I link this to a lightbox, and which lightbox do I use for this?

Thanks in advance
