# Mc variable linkage

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 16, 2004, 11:36am UTC](https://forum.kirupa.com/t/mc-variable-linkage/64441/2 "2004-09-16T11:36:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 16, 2004, 12:46pm UTC](https://forum.kirupa.com/t/mc-variable-linkage/64441/3 "2004-09-16T12:46:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 16, 2004, 7:48pm UTC](https://forum.kirupa.com/t/mc-variable-linkage/64441/4 "2004-09-16T19:48:18Z")

</div>

> [@amanuo](#):
>
> yeah thats already the case.  
> but they all need independent variables.

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 17, 2004, 8:35am UTC](https://forum.kirupa.com/t/mc-variable-linkage/64441/5 "2004-09-17T08:35:12Z")

</div>

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

Thanks!
