# Xml links

**URL:** <https://forum.kirupa.com/t/xml-links/185369>\
**Category:** Uncategorized\
**Created:** [April 12, 2006, 8:18pm UTC](https://forum.kirupa.com/t/xml-links/185369 "2006-04-12T20:18:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)\
**Post date:** [April 12, 2006, 8:18pm UTC](https://forum.kirupa.com/t/xml-links/185369/1 "2006-04-12T20:18:53Z")

</div>

Any ideas or examples are greatly welcome.  
I’m making an illustration of an amusement park. I’m going to animate it in flash so if you rollover a certain part of it (go carts) there will be a little animation of a go kart rolling or something. Anyway, it’s just going to be a bunch of separate movie clips with on(release) handlers on them to go to different parts of an html site. The client needs to be able to edit the links for the flash piece through an xml file. What’s the way to go about this? Anyone make an easy example?  
i need xml to replace whatever link would be in the code.

```auto

on(release){
getURL("link from xml file here");
}

```

I’m pretty familiar with XML and how to use it in loops, but for individual buttons like this, I’m a little confused.

Thanks

---

<div class="post-metadata">

**Author:** ![icleric](https://avatars.discourse-cdn.com/v4/letter/i/4bbf92/32.png) [@icleric](https://forum.kirupa.com/u/icleric)\
**Post date:** [April 12, 2006, 11:41pm UTC](https://forum.kirupa.com/t/xml-links/185369/2 "2006-04-12T23:41:23Z")

</div>

as you’re familiar with XML, just assign a variable, LINKY for instance, to hold the node value of the link stored on your xml…  
then,

```auto

on(release){
getURL(LINKY);
}

```

hope that helps 🙂

---

<div class="post-metadata">

**Author:** ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)\
**Post date:** [April 13, 2006, 12:23pm UTC](https://forum.kirupa.com/t/xml-links/185369/3 "2006-04-13T12:23:48Z")

</div>

Thanks, I’ll give that a shot.

---

<div class="post-metadata">

**Author:** ![caynada](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@caynada](https://forum.kirupa.com/u/caynada)\
**Post date:** [April 13, 2006, 1:31pm UTC](https://forum.kirupa.com/t/xml-links/185369/4 "2006-04-13T13:31:59Z")

</div>

Just out of curiousity… how would the XML file look? And is there something extra that would need to go into the actionscript?
