Results 1 to 2 of 2

Thread: TAKE02-Adding Hyperlink to text inputed by XML?

  1. #1
    Join Date
    Mar 2008
    Posts
    46
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default TAKE02-Adding Hyperlink to text inputed by XML?

    Hello, I am still battling with this issue:
    Problem:
    I have text being inputed into my flash document with this script via XML:
    stop();
    my_xml = new XML();
    my_xml.load("xml/info_text_galleries.xml");
    my_xml.onLoad = my_function;
    my_xml.ignoreWhite = 1;

    function my_function() {
    raft_mc.raft.html = true;
    raft_mc.raft.htmlText = my_xml.firstChild.childNodes[3].attributes.body_name;
    }

    Question:
    How do I add a hyperlink to the text within the XML?
    Here is an example of the XML text that I am using:

    <texts>
    <text body_name="Information and Reservations
    XXXXX
    Dive & Tours Club
    MANADO - INDONESIA

    resort@XXXXX.com
    Tel. 431/828.335 –
    Mobile 811.432.052
    Fax /828.336
    www.XXXXX.com" ></text>
    </texts>

    A written example would be great, such as <url>www.abcd.com</url>
    or however you would do it, if it is even possible!

    Finally, can I bold inputed text within the XML document with HTML code?
    Change font size?
    If so, how???

    Sorry for the repeated question, just having a rough one...
    Thanks for you help in advance!
    zeech
    Last edited by Snookerman; 06-08-2009 at 06:13 PM.

  2. #2
    Join Date
    Mar 2008
    Posts
    46
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Resolved_xml data

    I figured it out:
    AS I used:

    stop();
    my_xml = new XML();
    my_xml.load("xml/contact_text_galleries.xml");
    my_xml.onLoad = my_function;
    my_xml.ignoreWhite = 1;

    function my_function() {
    tours_mc.tours.html = true;
    tours_mc.tours.htmlText = my_xml.firstChild.childNodes[0].firstChild.nodeValue;
    }

    XML I used:

    <texts>
    <text><![CDATA[Information and Reservations

    Dive & Tours Club
    MANADO - INDONESIA
    <a href="mailto:blah@blah.com">your text</a>
    resort@XXXXX.com
    Tel. 431/828.335 –
    Mobile 811.432.052
    Fax /828.336
    www.XXXXX.com]]></text>
    </texts>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •