# Targeting Text Fields for XML Screen-Based Presentations

**URL:** <https://forum.kirupa.com/t/targeting-text-fields-for-xml-screen-based-presentations/163381>\
**Category:** flash\
**Created:** [September 22, 2005, 12:04am UTC](https://forum.kirupa.com/t/targeting-text-fields-for-xml-screen-based-presentations/163381 "2005-09-22T00:04:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sw33tdesign](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@sw33tdesign](https://forum.kirupa.com/u/sw33tdesign)\
**Post date:** [September 22, 2005, 12:04am UTC](https://forum.kirupa.com/t/targeting-text-fields-for-xml-screen-based-presentations/163381/1 "2005-09-22T00:04:06Z")

</div>

Thanks to this site’s tutorials I FINALLY understand how to call XML into a Flash presentation.

Now for part two:

I have a working function that I placed on a screen (slide). Both text areas and code are located on the same screen.

```auto
function loadXML(loaded) {
     if (loaded) {
          inventor = this.firstChild.childNodes[1].childNodes[0].firstChild.nodeValue;
          comments = this.firstChild.childNodes[1].childNodes[1].firstChild.nodeValue;
          name_txt.text = inventor;
          comment_txt.text = comments;
     } else {
          content = "file not loaded!";
     }
}

```

If I move the text areas to a child screen, of course it breaks. How does one target screens with XML?

For example, I have name\_txt and comment\_txt on the “presentation” screen. As the presentation moves to screen “john,” can I place a script on the “john” screen to change the values of my text fields on the “presentation” screen? Or do I have to create new text fields per screen?

Thanks so much in advance.
