# Activating Lightbox 2.0 from Flash

**URL:** <https://forum.kirupa.com/t/activating-lightbox-2-0-from-flash/219145>\
**Category:** flash\
**Created:** [March 14, 2007, 9:11am UTC](https://forum.kirupa.com/t/activating-lightbox-2-0-from-flash/219145 "2007-03-14T09:11:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greggeh](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@Greggeh](https://forum.kirupa.com/u/Greggeh)\
**Post date:** [March 14, 2007, 9:11am UTC](https://forum.kirupa.com/t/activating-lightbox-2-0-from-flash/219145/1 "2007-03-14T09:11:16Z")

</div>

Hey guys,

I’m not sure if i should post this post here or at the JS forums but I hope you can help me out here.

Alright so here’s the deal:

Im using the Lightbox 2.0 ([http://www.huddletogether.com/projects/lightbox2/](http://www.huddletogether.com/projects/lightbox2/)) And a flash movie in the same page. Now ive got this thumbnail slider in the flashmovie with thumbnails loaded from an xml file. As soon as i hit a thumbnail i want the Lightbox to show the full image of the thumbnail.

I’ve got everything set up and if i test if the Lightbox works with an html link it works perfectly:

```auto
<a href = "path/to/image.jpg" rel="lightbox" title="my Title">Lightbox test</a>

```

Now my question is how do I call the same action in AS?

I understood the rel attribute refers to both the Lightbox JavaScript and the StyleSheet. But i really dont know how to set the rel attribute in flash.
