|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Flash getting input from XML how to add hyperlink?
Hi,
I have been searching all over, but being a newby I can't find or understand how to do the following. I have a flash file that get's input from an xml file. In this file I would like to add an hyperlink to another page. Tried a lot of solutions on the web, but I think I don't understand. here's the xml, I would like click here in <article> to be a hyperlink to an asp file. <newsitem id="2"> <title>Latest News</title> <date>27.02.2008</date> <article>Here is the latest news. To watch the movie, click here. </article> Anyone willing to help? Thx |
|
#2
|
|||
|
|||
|
Either you'd need an anchor <a> tag or a <link> tag. Not sure how it's done in Flash
eg. <a href="www.google.com">click here</a> |
|
#3
|
|||
|
|||
|
Well yes, that works in html of course or asp, but how about in xml ...
I got this far, but still no link showing up... anyone? <article>text of article goes here <![CDATA[<a href="(www.etc)" target="_blank">Klick here to visit the website</a>]]> </article> thx |
|
#4
|
|||
|
|||
|
Possibly
-- <node> http://www.something.com</node> btn.onRelease=function(){ getURL(node) } -- OR <node><![CDATA[<a href="<A href="http://www.something.com">click here</a>]]></node> setting your text box to interpret CDATA as html. |
|
#5
|
|||
|
|||
|
Only thing that at least makes text show up is:
<article><![CDATA[textexttexttexttext<a href="link here" target="_blank">Click to visit the website</a>]]> </article> BUT this only makes the whole line of text visible and still no link, anyone? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Flash getting input from XML how to add hyperlink? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|