A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Urls in XML

  1. #1
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    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??

  2. #2
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563

    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... :-(

  3. #3
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    for anyone who's interested;
    from http://www.w3schools.com/
    If your text contains a lot of "&lt;" or "&" characters - like program code often does - the XML element can be defined as a CDATA section.

    A CDATA section starts with "&lt;![CDATA[" and ends with "]]>":
    &lt;script>
    &lt;![CDATA[
    function matchwo(a,b)
    {
    if (a > b && a > 0) then
    {
    return 1
    }
    else
    {
    return 0
    }
    }
    ]]>
    &lt;/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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center