# Loading diffrent text strings from xml to different named text fields in Flash CS3

**URL:** <https://forum.kirupa.com/t/loading-diffrent-text-strings-from-xml-to-different-named-text-fields-in-flash-cs3/270810>\
**Category:** flash\
**Created:** [September 14, 2008, 5:49pm UTC](https://forum.kirupa.com/t/loading-diffrent-text-strings-from-xml-to-different-named-text-fields-in-flash-cs3/270810 "2008-09-14T17:49:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![babboor](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@babboor](https://forum.kirupa.com/u/babboor)\
**Post date:** [September 14, 2008, 5:49pm UTC](https://forum.kirupa.com/t/loading-diffrent-text-strings-from-xml-to-different-named-text-fields-in-flash-cs3/270810/1 "2008-09-14T17:49:06Z")

</div>

Hello guys,

I would realy appreciate it if you can help me on this.

[COLOR=Red]I want to load 3 text strings from an xml file to three different named text fields in[/COLOR][COLOR=Red] a swf file generated by flash cs3[/COLOR][COLOR=Red] AS 3.0. [/COLOR]  
I placed three text fields on the stage in flash and gave them instance names box1\_txt box2\_txt and box3\_txt.  
I wrote three text strings in an xml file and I want them to load to the textfields box1\_txt, box2\_txt and box3\_txt respectively, taking into consideration that the text fields can be on different frames, layers, and even inside a movie clip.  
This is to give others the ability to change the text strings (in the xml file) into other langages without the need to use flash

My xml file could look like this:

\<?xml version=“1.0” encoding=“UTF-8”?\>  
\<map\>  
\<title box1\_txt =“This is text field ONE” /\>  
\<title box2\_txt=“This is text field TWO” /\>  
\<title box3\_txt=“This is text field THREE” /\>  
\</map\>

I just do not know how to structure and write the AS3 code. :crying:

Can you help me with the code please? it is really urgent!  
Or i there a tutorial you know it explains how to direct text strings frm xml to text field instances?  
Thanks
