A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: XML text question?

  1. #1
    Member
    Join Date
    Aug 2007
    Posts
    33

    XML text question?

    I am posting text from an XML doc to many text fields I have on a page... and this is working fine, but I have one text field that needs to repopulated if a GUI button is pushed. The function the button is calling is firing correctlly but the text field is displaying 'Undifined' - and I have checked the XML path!

    here is the function:

    function translate()
    {
    ccText.cc_txt._x = resetPos;
    ccText.cc_txt.htmlText = allXML.childNodes[0].childNodes[2].firstChild.nodeValue;
    scroller();
    }


    It does work if I change the function to this:

    function translate()
    {
    ccText.cc_txt._x = resetPos;
    ccText.cc_txt.htmlText = "blah blah";
    scroller();
    }

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    what is the result of a trace ?

    function translate(){
    trace(allXML.childNodes[0].childNodes[2].firstChild.nodeValue); // undefined ??
    }

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