Skip to main content
November 10, 2009
Answered

Adding TEXT url link in MX04

  • November 10, 2009
  • 1 reply
  • 354 views

Please can someone help. I'm new to xml and flash and have worked through the following tutorial: http://www.kirupa.com/developer/actionscript/xmldataflash2.htm

I now want to add a link so for example I want <name>Thomas Edison</name>  the name to be the link how do I do this. I've looked at links which give solutions like <name>&lt;a href="item/01.html"&gt; Thomas Edison &lt;/a&gt;</name> but none of this has worked.

I'm using MX pro 04. Thanks

This topic has been closed for replies.
Correct answer kglad

in your xml, use:

<name><![CDATA[<a href="item/01.html> Thomas Edison </a>]]></name>

and use the value of your name node in your html-enabled textfield.

the cdata node prevents the xml-parser from parsing the apparent tags within the name node.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
November 10, 2009

in your xml, use:

<name><![CDATA[<a href="item/01.html> Thomas Edison </a>]]></name>

and use the value of your name node in your html-enabled textfield.

the cdata node prevents the xml-parser from parsing the apparent tags within the name node.