# .\_x & .\_y

**URL:** <https://forum.kirupa.com/t/-x--y/168838>\
**Category:** flash\
**Created:** [November 10, 2005, 3:36pm UTC](https://forum.kirupa.com/t/-x--y/168838 "2005-11-10T15:36:04Z")\
**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:** [November 10, 2005, 3:36pm UTC](https://forum.kirupa.com/t/-x--y/168838/1 "2005-11-10T15:36:04Z")

</div>

Hi

Can anyone help me with this…its starting to get on my nerves!

```auto
var y1 = ball._y

```

This piece of code works fine to get the coordinates of ‘ball’, but if I want to change ‘ball.\_y’ so I can use a variable called ‘mc\_name’ instead so rather than been stuck with just being able to get the coordinates for ball it would get them for whatever is in ‘mc\_name’…if that makes sence?

maybe something like

```auto
 var mc_name = "ball2"; 
var y1 = (mc_name)._y
var x1 = (mc_name)._x

```
