# Calling xml elements without hard coding

**URL:** https://forum.kirupa.com/t/calling-xml-elements-without-hard-coding/212499
**Category:** Uncategorized
**Created:** [January 11, 2007, 3:40pm UTC](https://forum.kirupa.com/t/calling-xml-elements-without-hard-coding/212499 "2007-01-11T15:40:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sailesh](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@Sailesh](https://forum.kirupa.com/u/Sailesh)
#### Post date: [January 11, 2007, 3:40pm UTC](https://forum.kirupa.com/t/calling-xml-elements-without-hard-coding/212499/1 "2007-01-11T15:40:12Z")

</div>

looking at xml being placed into flash via actionscript. How would one make it so that pressing a button (with a title like Morocco) call a select element of the xml without hardcoding.

I’ve gone through some of the tuts on kirupa…and searched.

Help would be appreciated. :azn:
