# Why is this text field not creating?

**URL:** <https://forum.kirupa.com/t/why-is-this-text-field-not-creating/190254>\
**Category:** Uncategorized\
**Created:** [June 9, 2006, 7:10pm UTC](https://forum.kirupa.com/t/why-is-this-text-field-not-creating/190254 "2006-06-09T19:10:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhunt](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mhunt](https://forum.kirupa.com/u/mhunt)\
**Post date:** [June 9, 2006, 7:10pm UTC](https://forum.kirupa.com/t/why-is-this-text-field-not-creating/190254/1 "2006-06-09T19:10:18Z")

</div>

when i trace out closeWindow\_txt.text it returns undefined? anyone see whats wrong?

```auto

var imageViewer:MovieClip = attachMovie("imageviewer", "imageView", getNextHighestDepth());
            imageView._x = Stage.width/2-imageViewer._width/2-10;
            imageView._y = Stage.height/2-imageViewer._height/2;
            //close button
            this.createTextField("closeWindow_txt", getNextHighestDepth(), 595, 108, 200, 100);
            closeWindow_txt.text = "Close";
            closeWindow_txt.border = false;
            closeWindow_txt.html = false;
            closeWindow_txt.multiline = false;
            closeWindow_txt.selectable = false;
            closeWindow_txt.font = "Verdana";
            trace(closeWindow_txt.text);
            //end close button
            //loadmovie
            //trace("before movie");
            this.thumbInfo = this.imageView.createEmptyMovieClip("thumbinfo", getNextHighestDepth());
            this.thumbInfo.loadMovie(this.picHolder);
            //trace("after movie");

```
