-
Senior Member
Ok, I started looking at xml yesterday night...so don't laugh too loud;
How can I get the flash xml parser to display links in text fields?
What i'd like is to specify the data for the text field via xml, but I can't work out how I'd stop Flash from parsing an <"a href=blah"> tag as another xml node; it seems to just stop loading the text when it gets to a url tag, i suppose cos it thinks it's child node...
What can I do??
-
Senior Member
Oops
Fixed it, was dodgy tutorial i was using which had the same xml object specified twice in different frames....the other one hidden nicely at the bottom of the timeline window.
Spent several hours trying to work that one out... :-(
-
Senior Member
for anyone who's interested;
from http://www.w3schools.com/
If your text contains a lot of "<" or "&" characters - like program code often does - the XML element can be defined as a CDATA section.
A CDATA section starts with "<![CDATA[" and ends with "]]>":
<script>
<![CDATA[
function matchwo(a,b)
{
if (a > b && a > 0) then
{
return 1
}
else
{
return 0
}
}
]]>
</script>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|