Xml-flash mx

[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:


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”>

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


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)
[/color][/size][/font] [font=Verdana, Arial, Helvetica][size=2][color=#330000]Een **xml-file **bevat o.a.

[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

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

[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 maar is niet aanklikbaar
Wie kan me helpen?[/color][/size][/font]

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