# Problem (bug?) with TextInput component

**URL:** <https://forum.kirupa.com/t/problem-bug-with-textinput-component/85415>\
**Category:** flash\
**Created:** [April 4, 2005, 5:29pm UTC](https://forum.kirupa.com/t/problem-bug-with-textinput-component/85415 "2005-04-04T17:29:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clinch](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@clinch](https://forum.kirupa.com/u/clinch)\
**Post date:** [April 4, 2005, 5:29pm UTC](https://forum.kirupa.com/t/problem-bug-with-textinput-component/85415/1 "2005-04-04T17:29:01Z")

</div>

I’m trying to make a new component in Flash MX 2004. Within that component, I’m using a TextInput component.

I’ve included the TextInput component in my library, and in my actionscript, I’m using the following code:

```auto
		
var initObj:Object = new Object();
initObj._x = 20;
initObj._y = 35;
initObj._width = 300;
initObj.text = "";
initObj.editable = true;
initObj.password = false;
this.createClassObject(mx.controls.TextInput, "username1", this.getNextHighestDepth(), initObj);

```

The component is successfully created at runtime, however, I cannot select or type into the TextInput field.

If I add a Button component to the same movie, it seems to work fine, but I’m having problems with the TextInput. Has anyone else experienced this? Is it a bug?
