# Calling variable from nested mc

**URL:** <https://forum.kirupa.com/t/calling-variable-from-nested-mc/261068>\
**Category:** Uncategorized\
**Created:** [May 22, 2008, 7:55pm UTC](https://forum.kirupa.com/t/calling-variable-from-nested-mc/261068 "2008-05-22T19:55:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stripedCyborg](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@stripedCyborg](https://forum.kirupa.com/u/stripedCyborg)\
**Post date:** [May 22, 2008, 7:55pm UTC](https://forum.kirupa.com/t/calling-variable-from-nested-mc/261068/1 "2008-05-22T19:55:55Z")

</div>

im trying to use a variable that is on my main timeline from within an mc twice nested but im not sure how to make it work.

on the main timeline i define my variable like so:  
var isItemSelected:Boolean;

and inside the mc, i have this:

parent.parent.isItemSelected = true;

which gives me an error : 1119: Access of possibly undefined property isProjectSelected through a reference with static type flash.display:DisplayObjectContainer.

---

<div class="post-metadata">

**Author:** ![jakattak](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jakattak](https://forum.kirupa.com/u/jakattak)\
**Post date:** [May 22, 2008, 8:31pm UTC](https://forum.kirupa.com/t/calling-variable-from-nested-mc/261068/2 "2008-05-22T20:31:50Z")

</div>

> **[ActionScript 3 Tip of the Day - Page 25](https://www.kirupa.com/forum/showthread.php?223798-ActionScript-3-Tip-of-the-Day&s=142aa69f957a4f3213208a0798f6d451&p=2120340#post2120340)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

looks like this has been encountered before
