# Issue with HTML links in XML

**URL:** https://forum.kirupa.com/t/issue-with-html-links-in-xml/324472
**Category:** flash
**Created:** [August 22, 2011, 10:30pm UTC](https://forum.kirupa.com/t/issue-with-html-links-in-xml/324472 "2011-08-22T22:30:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mileskemp](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@mileskemp](https://forum.kirupa.com/u/mileskemp)
#### Post date: [August 22, 2011, 10:30pm UTC](https://forum.kirupa.com/t/issue-with-html-links-in-xml/324472/1 "2011-08-22T22:30:53Z")

</div>

Hi. Thanks in advance for the help. For the life of me I can’t figure out how to get an html link to show up in Flash. I know that I need to use a CDATA function but It will not show up as a link in my Flash file. I have selected the dynamic text field called “d\_desc” and clicked the box “render text as html”. Can you please help me?

Do I need to insert a function like?  
root.myCP.d\_desc.htmlText = true;

Not sure where this code will go.

**Flash Code**  
Frame 1  
stop();  
//  
Stage.scaleMode = “noScale”;  
//  
var imgArray:Array = new Array();  
var myImages:XML = new XML();  
myImages.ignoreWhite = true;  
//  
myImages.onLoad = function(sucess) {  
if (sucess) {  
rootNode = this.firstChild.childNodes;  
var totalMenu:Number = rootNode.length;  
//trace(totalMenu)  
//node 0 = add settings info into array  
s\_thumbWidth = int(rootNode[0].attributes.thumbWidth);  
s\_thumbHeight = int(rootNode[0].attributes.thumbHeight);  
s\_pausecountdown = int(rootNode[0].attributes.pauseCountdown);  
s\_slideSpeed = rootNode[0].attributes.slideSpeed;  
s\_autoStart = rootNode[0].attributes.autoStart;  
s\_imageScale = rootNode[0].attributes.scaleImageToFit;  
//node \>= 0 add menu info into array  
for (i=1; i\<totalMenu; i++) {  
m\_big = rootNode\*.childNodes[1].firstChild.nodeValue;  
m\_small = rootNode\*.childNodes[2].firstChild.nodeValue;  
m\_title= rootNode\*.childNodes[0].firstChild.nodeValue;  
m\_desc= rootNode\*.childNodes[3].firstChild.nodeValue;  
trace(m\_big);  
imgArray.push([m\_big, m\_small, m\_title, m\_desc]);

```
    }
    gotoAndStop("done");
}

```

};  
myImages.load("\_xml/gal1.xml");

**XML Code**  
\<?xml version=“1.0” encoding=“utf-8” standalone=“no”?\>  
\<images\>  
\<set thumbWidth=“90” thumbHeight=“71” slideSpeed=“0.9” pauseCountdown=“5” autoStart=“true” scaleImageToFit=“true”\>\</set\>  
\<img\>  
\<title\>Image Name\</title\>  
\<bimage\>\_img/img00.jpg\</bimage\>  
\<thumb\>\_img/img00\_t.jpg\</thumb\>  
\<desc\>\<![CDATA[Some text can go here with a \<a href=“[http://www.yahoo.com](http://www.yahoo.com)”\>link here\</a\>. Second line of text.]]\>\</desc\>  
\</img\>  
\</images\>

Thanks for the help…M
