# XML and text fields

**URL:** <https://forum.kirupa.com/t/xml-and-text-fields/226223>\
**Category:** Uncategorized\
**Created:** [May 18, 2007, 11:23pm UTC](https://forum.kirupa.com/t/xml-and-text-fields/226223 "2007-05-18T23:23:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcusJones](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@marcusJones](https://forum.kirupa.com/u/marcusJones)\
**Post date:** [May 18, 2007, 11:23pm UTC](https://forum.kirupa.com/t/xml-and-text-fields/226223/1 "2007-05-18T23:23:55Z")

</div>

Hey,  
Is it possible to place XML-loaded text into a text field that is nested in a movieclip that is not on the stage but being exported from the library? Below is the function that I am using to call it. Everything works fine if the movieclip is placed on the stage, just not if the movieclip is left in the library.

[COLOR=“Blue”]my\_xml.onLoad = function(success){  
if (success){  
\_root.mission = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;  
trace(\_root.mission);[/COLOR]  
[COLOR=“Red”]mission\_mc.mission\_txt.text = \_root.mission;[/COLOR]\<text field  
[COLOR=“blue”]}  
}[/COLOR]

much appreciated.

[Flash 8]
