# Mc variable linkage

**URL:** <https://forum.kirupa.com/t/mc-variable-linkage/122716>\
**Category:** Uncategorized\
**Created:** [September 16, 2004, 9:46am UTC](https://forum.kirupa.com/t/mc-variable-linkage/122716 "2004-09-16T09:46:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amanuo](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@amanuo](https://forum.kirupa.com/u/amanuo)\
**Post date:** [September 16, 2004, 9:46am UTC](https://forum.kirupa.com/t/mc-variable-linkage/122716/1 "2004-09-16T09:46:08Z")

</div>

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 😛 and that it’s possible.
