# "Access of undefined property" error from custom class

**URL:** <https://forum.kirupa.com/t/access-of-undefined-property-error-from-custom-class/279734>\
**Category:** flash\
**Created:** [January 18, 2009, 4:05pm UTC](https://forum.kirupa.com/t/access-of-undefined-property-error-from-custom-class/279734 "2009-01-18T16:05:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![garion1](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@garion1](https://forum.kirupa.com/u/garion1)\
**Post date:** [January 18, 2009, 4:05pm UTC](https://forum.kirupa.com/t/access-of-undefined-property-error-from-custom-class/279734/1 "2009-01-18T16:05:03Z")

</div>

I am trying to create a custom class of my [AS3 XML News Ticker](http://lab.simplicit.co.za/?p=113). I am getting the error “1120: Access of undefined property” for references to objects which are already on the stage i.e. not dynamically created. I am pretty sure that it is an encapsulation issue.

Please view the attached files. I will appreciate assistance with this problem as I will be providing the class on [my blog](http://lab.simplicit.co.za) once it is working.
