# XML based button action?

**URL:** https://forum.kirupa.com/t/xml-based-button-action/151645
**Category:** flash
**Created:** [June 17, 2005, 12:58am UTC](https://forum.kirupa.com/t/xml-based-button-action/151645 "2005-06-17T00:58:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sky\_vault](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sky\_vault](https://forum.kirupa.com/u/sky_vault)
#### Post date: [June 17, 2005, 12:58am UTC](https://forum.kirupa.com/t/xml-based-button-action/151645/1 "2005-06-17T00:58:40Z")

</div>

ok i using an XML driven gallery(Scotty\*) and what i would like  
to do is add a button thats actions update with each  
picture to open a specific external link … either another  
web page or just a larger version of an image.  
i have done my best to sift my way thru the epic tut on  
XML here on Kirupa but i just cant seem to nail down  
what i need to add or where to add it to make this happen.  
my supsicions are that it needs to be updated on the load image  
function some how as i also want the text for the button to be  
specific for each item ( " launch project " , " open lg image " ,etc. )  
and as far as the button action itself could there just be a simple  
function that could be made that would dynamically seek out the  
XML for the current item’s URL ?  
thanks in advance  
\*
