# Problem with parent

**URL:** <https://forum.kirupa.com/t/problem-with-parent/322997>\
**Category:** flash\
**Created:** [June 13, 2011, 2:46am UTC](https://forum.kirupa.com/t/problem-with-parent/322997 "2011-06-13T02:46:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgriffen](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mgriffen](https://forum.kirupa.com/u/mgriffen)\
**Post date:** [June 13, 2011, 2:46am UTC](https://forum.kirupa.com/t/problem-with-parent/322997/1 "2011-06-13T02:46:09Z")

</div>

Ok, I cannot figure this out. I have a custom Class that extends Movieclip called Nav, and a container clip on stage. I’ve referenced the Nav Class and called it as such:

import com.Nav;

public var navigation:Nav;

navigation = new Nav();  
container.addChild(navigation);

This works fine. But when I try to access it with container.navigation ANYTHING it doesn’t recognize it. I CAN access it as simply “navigation.” But this shouldn’t be the case.

I cannot figure this out for the life of me and it’s driving me crazy. It should be the other way around, and navigation should not be accessible WITHOUT container.
