# Changing text to different text

**URL:** <https://forum.kirupa.com/t/changing-text-to-different-text/166968>\
**Category:** flash\
**Created:** [October 24, 2005, 1:47pm UTC](https://forum.kirupa.com/t/changing-text-to-different-text/166968 "2005-10-24T13:47:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lewi\_p](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@lewi\_p](https://forum.kirupa.com/u/lewi_p)\
**Post date:** [October 24, 2005, 1:47pm UTC](https://forum.kirupa.com/t/changing-text-to-different-text/166968/1 "2005-10-24T13:47:18Z")

</div>

Hi

I have this piece of code which basically takes some text from an XML file and displays it into a dynamic textbox called “a1” then the same text into another dynamic textbox called “a1h”:

```auto
 
var a1Node=findNode(rootNode, "a1");
a1=getValue(a1Node);
var a1box:String = a1;
 
a1h = a1

```

Say if “a1” is “England” is there a way to make “a1h” say a shorthand version…something like “ENG”

I could use a simple if else function but I have lots of dynamic textboxes and lots of different countries…any ideas?
