# Hyperlink in xml/flash

**URL:** <https://forum.kirupa.com/t/hyperlink-in-xml-flash/255278>\
**Category:** flash\
**Created:** [March 20, 2008, 6:16pm UTC](https://forum.kirupa.com/t/hyperlink-in-xml-flash/255278 "2008-03-20T18:16:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![irishcash33](https://avatars.discourse-cdn.com/v4/letter/i/958977/32.png) [@irishcash33](https://forum.kirupa.com/u/irishcash33)\
**Post date:** [March 20, 2008, 6:16pm UTC](https://forum.kirupa.com/t/hyperlink-in-xml-flash/255278/1 "2008-03-20T18:16:52Z")

</div>

Hi guys, I have an xml file going into a flash movie clip. I want the xml to be hyperlinks. The names of the hyperlinks will change with time, but the url will not. I can not get this to work. Please help.  
I have 2 dynamic text boxes…with this code in flash…

function loadXMLData(loaded) {  
if (loaded) {  
\_root.link1 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;  
\_root.link2 = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;  
link1\_txt.text = \_root.link1;  
link2\_txt.text = \_root.link2;  
}  
else {  
trace(“Could not load XML file”);  
}  
}  
xmlFile = new XML();  
xmlFile.ignoreWhite = true;  
xmlFile.onLoad = loadXMLData;  
xmlFile.load(“solutions.xml”);

here is the xml file

\<solutions\>  
\<item\>  
\<link1\>\<![CDATA[\<a href="\<A href=“[http://www.hotmail.com](http://www.hotmail.com)”\>link one\</a\>]]\>\</link1\>  
\<link2\>Link Two\</link2\>  
\</item\>  
\</solutions\>
