# Adding a LINK button to this Kirupa example

**URL:** <https://forum.kirupa.com/t/adding-a-link-button-to-this-kirupa-example/233093>\
**Category:** Uncategorized\
**Created:** [July 20, 2007, 1:43am UTC](https://forum.kirupa.com/t/adding-a-link-button-to-this-kirupa-example/233093 "2007-07-20T01:43:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![indierockmedia](https://avatars.discourse-cdn.com/v4/letter/i/7ab992/32.png) [@indierockmedia](https://forum.kirupa.com/u/indierockmedia)\
**Post date:** [July 20, 2007, 1:43am UTC](https://forum.kirupa.com/t/adding-a-link-button-to-this-kirupa-example/233093/1 "2007-07-20T01:43:02Z")

</div>

Hi, I am an XML sorta newbie. I like this tutorial for Kirupa’s basic photogallery  
([http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)). I want to add a third button (currently only next/prev image buttons) that will be for an associated link. If I create a button, link\_btn, and add a third field in all xml entries for info (or link), how would I modify the action script to recognize that each image has a link associated with it and clicking the LINK button will open the link associated with that XML entry?

thanks!

mikey
