# Help PLS! How to unload/make dissapear a text field on a parent timeline!

**URL:** <https://forum.kirupa.com/t/help-pls-how-to-unload-make-dissapear-a-text-field-on-a-parent-timeline/256075>\
**Category:** flash\
**Created:** [March 30, 2008, 11:04am UTC](https://forum.kirupa.com/t/help-pls-how-to-unload-make-dissapear-a-text-field-on-a-parent-timeline/256075 "2008-03-30T11:04:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![merapper](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@merapper](https://forum.kirupa.com/u/merapper)\
**Post date:** [March 30, 2008, 11:04am UTC](https://forum.kirupa.com/t/help-pls-how-to-unload-make-dissapear-a-text-field-on-a-parent-timeline/256075/1 "2008-03-30T11:04:10Z")

</div>

Hello! I am new to the forum and I’ve joined it because it solved some of my problems. I am making a site that describes objects. When you click an object on the stage it makes a “new window”(details\_mc.visible = true) appear that displays a picture and some text loaded from an external text file. details\_mc has a close button created that has this code:

(this is actualy on the actions layer)

stop();

close\_btn.addEventListener(MouseEvent.CLICK, hideDetails);

function hideDetails(event:MouseEvent):void {  
MovieClip(this.parent).details\_mc.visible = false;  
TextField(this.parent).details\_txt.unload(); // I also tried with MovieClip instead of TextField  
}

the only problem is that the textfield from the details window doesnt want to dissapear or unload so i can load another text field inside it. it gives me an error: 1119: Access of possibly undefined property details\_txt through a reference with static type flash.text:TextField.

all I want to happen is that when I click the close button the window dissapears, as well as the text. also the textfield is ready to load a different external text file.

I really hope you guys can help me!
