Vars in reference

Hi =)

i need help with a small bit of code…
i have this statement

wx=buttons.games._x+buttons._x;

were i want the word games to be a variable, as the mc it is refering to changes
i though i could do somethin glike this

wx=buttons.[qw]._x+buttons._x;

and have qw = “games” but that does not work

any help please?

//VoS