# 1119: Access of possibly undefined property (easy to fix) Really need help :(

**URL:** <https://forum.kirupa.com/t/1119-access-of-possibly-undefined-property-easy-to-fix-really-need-help/320054>\
**Category:** flash\
**Created:** [March 12, 2011, 7:08pm UTC](https://forum.kirupa.com/t/1119-access-of-possibly-undefined-property-easy-to-fix-really-need-help/320054 "2011-03-12T19:08:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monobry](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@monobry](https://forum.kirupa.com/u/monobry)\
**Post date:** [March 12, 2011, 7:08pm UTC](https://forum.kirupa.com/t/1119-access-of-possibly-undefined-property-easy-to-fix-really-need-help/320054/1 "2011-03-12T19:08:07Z")

</div>

Hey guys and gals, just wondering if anyone can help with this problem. I think it will be extremely easy for most of you, I really need help tho as I am a noob to as3

My code is as follows

```auto
buttons_mc.vespabutton1_btn.addEventListener(MouseEvent.CLICK,vespabutton1Click);

function vespabutton1Click(e:MouseEvent):void {
    trace("click1");
    root.vespaArray_mc.x = 175;
    root.vespaArray_mc.y = -51;
}

buttons_mc.vespabutton2_btn.addEventListener(MouseEvent.CLICK,vespabutton2Click);

function vespabutton2Click(e:MouseEvent):void {
    trace("click2");
    root.vespaArray_mc.x = -759;
    root.vespaArray_mc.y = -51;
}

```

and the error i get is as follows:

1119: Access of possibly undefined property vespaArray\_mc through a reference with static type flash.displayisplayObject.

I have attached my working file, maybe useful

Any help on this problem will be greatly appreciated.

Thanks in advance

Ryan
