A Flash Developer Resource Site

Results 1 to 20 of 23

Thread: hyperlinks in XML

Hybrid View

  1. #1
    Junior Member
    Join Date
    Oct 2006
    Posts
    17
    hello!
    i got to the same point and everything works fine.
    now i have a question:
    would it be possible to have more than one link in between the same <desc></desc>?
    i tried to have a short text with some links in it, like the following:

    <desc>hello, I'd like to <a href="http://www.somewhere.com target="_blank">"have</a> more than <a href="http://www.somewherelse.com target="_blank">one</a> link</desc>

    like that it stops readin when the first tag begins,... why??

    could you help me?

    thank you so much

  2. #2
    Senior Member
    Join Date
    May 2002
    Posts
    1,017
    Because the xml parser doesnt see text between the <desc></desc> tags like a Text node but as an Element node (see nodeType in Flash Help)
    So you should walk the child nodes of the desc node to get the whole text then concate it and assign it to variable or text field.
    while (2+2 == 4) {
    drink ("bourbon");
    }
    gotoAndStop("bed");

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