Mc variable linkage

I have an mc on the mainstage, that contains 5 other mc’s.
Those 5 mc’s are instances of the same mc, with different Instance names.
Those mc’s are told to do different stuff via AS depending on the user’s interaction (the mc’s can be in a certain amount of different states).

This first part is working fine, but now i need to be able to change the state (reset) when the user clicks on it, and set a variable that that mc is in that state.

since you can not put different variables, in instances of the same mc, [color=blue]i’m wondering if there’s a way to link your variable location to one lower level[/color].
Then i can put the 5 mc’s in 5 seperate mc’s which contain the state-variables.

So like in html/dos you can link to “…/whatever”. Instead of giving the _root.whatever because the seperate mc doesn’t know which mc he is (on of 5), so then all mc’s would link to the same instance and all have the same state-var.

Hope i made this clear to someone :stuck_out_tongue: and that it’s possible.

put your child mc in 5 different mcs.

so you have 5 mcs which look exactly the same and when you make changes to the child mc, the changes are reflected everywhere.

yeah thats already the case.
but they all need independent variables.

Not entirely sure what you are doing but this may help.

not exactly what i meant, but i can definately use the technique to solve the problem.

Thanks!