# Setting text of textarea

**URL:** <https://forum.kirupa.com/t/setting-text-of-textarea/292117>\
**Category:** Uncategorized\
**Created:** [July 10, 2009, 9:37am UTC](https://forum.kirupa.com/t/setting-text-of-textarea/292117 "2009-07-10T09:37:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RossKidd](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@RossKidd](https://forum.kirupa.com/u/RossKidd)\
**Post date:** [July 10, 2009, 9:37am UTC](https://forum.kirupa.com/t/setting-text-of-textarea/292117/1 "2009-07-10T09:37:50Z")

</div>

Hi,

I have a movieclip inside it is a textarea. It is in the libary and the MC is exported for actionscript as “bulletPoint”.

When trying to set the text I try

var bullet1:MovieClip = new bulletPoint();  
bullet1.getChildAt(1).text=“hello”;

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

is there a way to get this to work without giving the textarea a name? I would rather use getChildAt if possible.

I can get it to work using

bullet1.bulletText.text=“hello”;
