# Error 1009 Need help to resolve

**URL:** <https://forum.kirupa.com/t/error-1009-need-help-to-resolve/330577>\
**Category:** flash\
**Created:** [February 12, 2013, 3:25pm UTC](https://forum.kirupa.com/t/error-1009-need-help-to-resolve/330577 "2013-02-12T15:25:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickyhay](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@rickyhay](https://forum.kirupa.com/u/rickyhay)\
**Post date:** [February 12, 2013, 3:25pm UTC](https://forum.kirupa.com/t/error-1009-need-help-to-resolve/330577/1 "2013-02-12T15:25:20Z")

</div>

Hi All, I posted the question on another forum but got no answer i am hoping for better luck on here!

In Flash i was building a TextArea and TextInput.

When i pressed control and enter i received this large message in the output:

> Attempting to launch and connect to Player using URL C:\Users/  
> [SWF] C:\UsersUntitled-2.swf - 45485 bytes after decompression  
> TypeError: Error #1009: Cannot access a property or method of a null object reference.  
> at fl.controls::TextArea/drawLayout()  
> at fl.controls::TextArea/draw()  
> at fl.core::UIComponent/callLaterDispatcher()  
> Cannot display source code at this location.  
> Debug session terminated.

To be honest i dont fully understand what all this means. My code appears to be fine its pretty basic has you can see from below:

Any thoughts what caused all this or any suggestion how i can fix it?  
Thanks in advance

```auto
import fl.controls.TextInput;
import flash.text.TextFormat;
import fl.controls.TextArea;

var tf:TextFormat = new TextFormat();
tf.size = 14;
tf.font = "Arial";
tf.color = 0x00ffff;

var ti:TextInput = new TextInput();
ti.setSize(429, 50);
ti.move(96, 286);
ti.editable = true;
ti.enabled = true;
ti.setStyle("textFormat", tf);
addChild(ti);

var ta:TextArea = new TextArea();
ta.editable = false;
ta.enabled = true;
ta.setSize(246, 20);
ta.move(96, 286);
ta.setStyle("textFormat", tf);
addChild(ta);

```
