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:
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?