# 1119: Access of possibly undefined property

**URL:** <https://forum.kirupa.com/t/1119-access-of-possibly-undefined-property/318166>\
**Category:** Uncategorized\
**Created:** [January 12, 2011, 6:09am UTC](https://forum.kirupa.com/t/1119-access-of-possibly-undefined-property/318166 "2011-01-12T06:09:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitinmukesh](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@nitinmukesh](https://forum.kirupa.com/u/nitinmukesh)\
**Post date:** [January 12, 2011, 6:09am UTC](https://forum.kirupa.com/t/1119-access-of-possibly-undefined-property/318166/1 "2011-01-12T06:09:26Z")

</div>

Hi,

I am not able to solve this particular issue.

_ **1119: Access of possibly undefined property box1 through a reference with static type flash.display:DisplayObjectContainer.** _

I have a MovieClip on Stage for which Class is MillionaireButton. and instance name is box1.

There is another MovieClip on Stage in which on 2nd frame I am trying to access the box1 movieclip but nothing worked.

I tried all this but it does not work ☹

trace(parent.box1 as MillionaireButton);

trace(MillionaireButton(parent.box1));

I have also attached the sample file. Please help
