# Extract one variable from a Array(hope I worded that right)

**URL:** https://forum.kirupa.com/t/extract-one-variable-from-a-array-hope-i-worded-that-right/286094
**Category:** flash
**Created:** [April 9, 2009, 9:32pm UTC](https://forum.kirupa.com/t/extract-one-variable-from-a-array-hope-i-worded-that-right/286094 "2009-04-09T21:32:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Solidus](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Solidus](https://forum.kirupa.com/u/Solidus)
#### Post date: [April 9, 2009, 9:32pm UTC](https://forum.kirupa.com/t/extract-one-variable-from-a-array-hope-i-worded-that-right/286094/1 "2009-04-09T21:32:38Z")

</div>

Okay I am going to reword this to make this easier.

I have a XML file with this field:

**\<link\>[http://www.definitivetheater.com](http://www.definitivetheater.com)\</link\>**  
**\<link\>[http://www.renewlending.com](http://www.renewlending.com)\</link\>**

In Actionscript I have put the following code to hold the information in the XML:

_link = [];  
link = xmlNode.childNodes_.childNodes[3].firstChild.nodeValue;\*\*

Now I have a button that has the following code in it:

\*\*on (release) {  
getURL(\_root.link, “\_blank”);  
\*\ ***}**  
Because my variable **link** has all the information from the xml stored in it the web address outputs:

\*\*[http://www.definitivetheater.com](http://www.definitivetheater.com), \*\***[http://www.renewlending.com](http://www.renewlending.com)**

How can I get it to just target the first \<link\>?
