# TextArea component does not load after publishing as AIR

**URL:** <https://forum.kirupa.com/t/textarea-component-does-not-load-after-publishing-as-air/300347>\
**Category:** flash\
**Created:** [November 19, 2009, 3:21pm UTC](https://forum.kirupa.com/t/textarea-component-does-not-load-after-publishing-as-air/300347 "2009-11-19T15:21:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadaj](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kadaj/32/9061_2.png) [@kadaj](https://forum.kirupa.com/u/kadaj)\
**Post date:** [November 19, 2009, 3:21pm UTC](https://forum.kirupa.com/t/textarea-component-does-not-load-after-publishing-as-air/300347/1 "2009-11-19T15:21:05Z")

</div>

Hi,  
I have a TextArea component in the library.  
Its Class is: fl.controls.TextArea

I add it to the stage using the addChild method.  
Running it inside the flash CS4 the textArea component gets added to the stage as intended. But after publishing, the textArea component doesn’t get loaded.

What may be the problem?  
The stage is blank without any textarea.

* * *

Sorry it was my mistake. Logical error.

```auto

view(); //I called directly => it works.

function view() 
{
    addChild(input_txt); //input text area
    addChild(output_txt); //output text area
 //.........
}

```

But earlier it was inside another function

```auto

|--getPastMemIndex()    
           |--shortMem()   
                      |--view()

```

[COLOR=Red]But I still don’t understand why keeping view inside another function doesn’t work only after publishing AIR, but works before publishing…[/COLOR]  
Flash is playing hide and seek with me!

Any idea developers?
