# Move mc in actionscript

**URL:** <https://forum.kirupa.com/t/move-mc-in-actionscript/179862>\
**Category:** flash\
**Created:** [February 23, 2006, 2:55pm UTC](https://forum.kirupa.com/t/move-mc-in-actionscript/179862 "2006-02-23T14:55:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hankd](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hankd/32/1853_2.png) [@hankd](https://forum.kirupa.com/u/hankd)\
**Post date:** [February 23, 2006, 2:55pm UTC](https://forum.kirupa.com/t/move-mc-in-actionscript/179862/1 "2006-02-23T14:55:55Z")

</div>

im loading in a xml doc and it loop in the xml doc depeneding on how many node are in it. and attaches the nodes to a mc. the mc has three text fields in it. im trying to move that mc called t over 50px on \_y.

```auto

			if (id[x] == "New York"){
				t._x = 20;
				t._y = 20;
			}
			else if (id[x] == "LA"){
				t._x = 20;
				t._y = 56;
			}
			else if (id[x] == "Chicago"){
				t._x = 20;
				t._y = 110;
			}

```

as of right now they load on top of each other. does anyone know how i would go about doing that? thanks in advance.
