views:

48

answers:

1

Hey i wanna do something like this:

i=2;
_root.("process" + i)._x = var_Process_Pos_x;

how it is possible?, correct syntax please.

+3  A: 

You need to use the bracket operator to access data members in the following manner:

_root["process" + i]._x = var_Process_Pos_x;
Raul Agrait