_root.variable.variable possible?

hi,

could i have a variable… which goes along the lines of something like this…

_root.player1.attack = "one";

i’ve tried it… maybe i can… but i’m doing it wrong?

“player1” is a variable as is “attack”…

or do i have to make it

_root.player1_attack = "one"

or something like that for it to work?

Is there a way to make the first example work? cause it’ll definitely make things a lot easier! lol