._x & ._y

Hi

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

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

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