# Accesing a text field from a custom class

**URL:** <https://forum.kirupa.com/t/accesing-a-text-field-from-a-custom-class/229383>\
**Category:** Uncategorized\
**Created:** [June 16, 2007, 3:24pm UTC](https://forum.kirupa.com/t/accesing-a-text-field-from-a-custom-class/229383 "2007-06-16T15:24:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monitoiul](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@monitoiul](https://forum.kirupa.com/u/monitoiul)\
**Post date:** [June 16, 2007, 3:24pm UTC](https://forum.kirupa.com/t/accesing-a-text-field-from-a-custom-class/229383/1 "2007-06-16T15:24:18Z")

</div>

hello everyone.  
i have encountered the following issue:  
in a document i have 2 instances of different movie clips, one named inputArea and one named inputButton. both symbols from the library have been shared for ActionScript, and I assigned to the inputButton a custom class, which I built in a separate .as file.  
the problem is that I cannot reference inputArea from my custom class, getting an error message:

1119: Access of possibly undefined property inputArea through a reference with static type flash.display:DisplayObject.

i tried to type root.inputArea but that didn’t work…  
if anyone is able to help i would be grateful
