PDA

View Full Version : unsure how to make link in xml after flash


dannyboy1986
02-19-2010, 12:36 PM
Hi,

Can anyone help make it so that someone can click on the news text and it takes them to a page? the code is below: (I want the bold to be a link)

<?xml version='1.0' encoding='iso-8859-1'?>
<lijst>
<zin>dans slider</zin>
<zin>i can type anthin in here</zin>
<zin>You can easily add news...</zin>
<zin>test lenght test length test length test length test lenght test length test length test </zin>
<zin>????????</zin>
<zin>i can make as many lines as i like</zin>
</lijst>

Many thanks

edbr
02-20-2010, 12:58 AM
im not clear what you ask but
<a href="your_page.html">YOUR TEXT </a> is code for a link

gentleone
02-20-2010, 11:23 AM
I found this for you, but I'm not sure if it will help you.


If they are intended to be links in textfields, then there is some special
coding needed in the both the xml file and the flash code.

For the textfield, you need to assign the text as textfield.htmlText =
yourLinkText;

In the XML file, you need to tell it to ignore tags that are intended as html
tags and not tags of the xml structure by enclosing the html using

<![CDATA[ your html ]]>

<urlLink><![CDATA[ <a href="...whatever">Click Here</a> ]]></urlLink>

http://www.phwinfo.com/forum/macromedia-flash/329118-adding-hyperlinks-xml-document.html