# Xml-flash mx

**URL:** <https://forum.kirupa.com/t/xml-flash-mx/172537>\
**Category:** Uncategorized\
**Created:** [December 15, 2005, 10:52am UTC](https://forum.kirupa.com/t/xml-flash-mx/172537 "2005-12-15T10:52:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ren39](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ren39/32/2009_2.png) [@ren39](https://forum.kirupa.com/u/ren39)\
**Post date:** [December 15, 2005, 10:52am UTC](https://forum.kirupa.com/t/xml-flash-mx/172537/1 "2005-12-15T10:52:11Z")

</div>

[font=Verdana, Arial, Helvetica][size=2][color=#330000][size=5][color=black]In English,[/color][/size]

[/color][/size][/font]Can someone please help me, below you’ll find the answer i get from Dave Tavelli but it hasn’t givin me the solution to my question. Hopefully there is someone who can help me!

Dave wrote:  
i would get rid of this line:

var newString2 = choosenUrlText.searchReplace(term, “\<font color=’#0000CC’\>\<b\>”+term+"\</b\>\</font\>");

this is wrapping the url in formatting html. try getting rid of this part altogether or change it to this and make sure textfield has html=true

var newString2 = choosenUrlText.searchReplace(term,"\<a href="+term+" / \>");

On Dec 14, 2005, at 2:09 AM, Webmaster Ren wrote:

```
 	Hi,

```

I downloaded your ‘Flash XML Search Engine’.  
Can you help me with following question?

I want to have a hyperlink displayed in the result box after a search action.  
This is the actionscript i added,

// Converts myResults array of xml nodes to regular array  
var url = XPath.selectNodes(myResults\*, “./url”) [0].firstChild.nodeValue;

// set Url in taUrl textbox  
var choosenUrlText = XPath.selectNodes(choosenEpisodeData, “./url”) [0].firstChild.nodeValue;  
choosenUrlText = choosenUrlText.toString();  
var newString2 = choosenUrlText.searchReplace(term, “\<font color=’#0000CC’\>\<b\>”+term+"\</b\>\</font\>");  
taUrl.text = newString2;

The display is the hyperlink, between \<url\>tags, i added into de guide.xml file,  
\<ep n=“2”\>  
\<id\>1-02\</id\>  
\<d\>Sector\</d\>  
\<dn\>86026\</dn\>  
\<dt\>13122005\</dt\>  
\<name\>CIS\</name\>  
\<gs\>Members\</gs\>  
\<url\>[http://www.google.com"\</url\>](http://www.google.com%22%3c/url%3E);  
\</ep\>

I added in the FlashMovie a TextArea component called taUrl  
After a click on the search result at generates the line,

[http://www.google.nl](http://www.google.nl/)

but it isn’t click-able and that’s what i want!

Can you please help me solving this ‘problem’.

Thanks in advance,  
Webmaster Freestyler  
[font=Verdana, Arial, Helvetica][size=2][color=#330000]\*\*  
[size=5]In dutch:[/size]\*\*

Wie kan me helpen,

In mijn project probeer ik dmv een xml file een soort van database te maken waarin informatie staat over een bepaald onderwerp met daarin een hyperlink. Die hyperlink wil ik in een textbox/textarea met de instance naam taUrl in te laden (Flash MX2004 Movie).

Wat heb ik gebruikt,

Xpath gedownload van : [http://www.sephiroth.it/download.php ([url=“http://www.xfactorstudio.com”]www.xfactorstudio.com](http://www.sephiroth.it/download.php))  
[/color][/size][/font] [font=Verdana, Arial, Helvetica][size=2][color=#330000]Een \*\*xml-file \*\*bevat o.a.  
\<url\>[http://www.google.nl\</url\>](http://www.google.nl%3c/url%3E)[/color][/size][/font]

[font=Verdana, Arial, Helvetica][size=2][color=#330000] **Actionscript file in FlashMovie**  
In de flashmovie staat een TextArea met instancename: taUrl  
parameters van de taUrl: html=true  
[/color][/size][/font]

[font=Verdana, Arial, Helvetica][size=2][color=#330000] **Actionscript code**  
[/color][/size][/font]

[font=Verdana, Arial, Helvetica][size=2][color=#330000]// set Url in taUrl textbox  
var choosenUrlText = XPath.selectNodes(choosenEpisodeData, “./url”)[0].firstChild.nodeValue;  
choosenUrlText = choosenUrlText.toString();  
[color=Red] var newString3 = choosenUrlText.searchReplace(term,"\<a href="+term+" / \>");[/color][/color][/size][/font]

[font=Verdana, Arial, Helvetica][size=2][color=#330000]In de textbox komt wel [www.google.nl](http://www.google.nl/) maar is niet aanklikbaar  
Wie kan me helpen?[/color][/size][/font]

[font=Verdana, Arial, Helvetica][size=2][color=#330000]Bedankt.[/color][/size][/font]
