The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Actionscripting Question w/ XML

JasconiusJasconius sword criminalmad onlineRegistered User regular
edited January 2007 in Help / Advice Forum
I'm trying to set up a Flash document that reads an XML file.

When I do a trace such as

trace(myobject.firstChild.firstChild);

I will get an output of:

<tag>Value</tag>

What is the proper extension of "myobject.firstChild.firstChild" to get only the value between the tags? I'm aware of attribute, but that only works for

<tag attribute="value"></tag>

Which is of no use to me...

Thanks.

this is a discord of mostly PA people interested in fighting games: https://discord.gg/DZWa97d5rz

we also talk about other random shit and clown upon each other
Jasconius on

Posts

  • HerschelHerschel Registered User regular
    edited January 2007
    myobject.firstChild.firstChild.nodeValue

    edit:
    actually, in your case, it's myobject.firstChild.firstChild.firstChild.nodeValue
    The text inside is a text node -- so you have to go down one more level. :)

    good luck!

    Herschel on
Sign In or Register to comment.