Dynamically add TextInput on button click

Ok, here is another question everyone knows the answer to but me, 'cause I’m just starting with Flash. I have a Button instance in a movie object. On Release, I want that button to add a TextInput field to the movie. I have been trying all kinds of code and I can’t get it to show up. Here is the code I have so far:

on (release) {
this._parent.createClassObject(mx.controls.TextInput,“projectName”,this.getNextHighestDepth());
projectName.move(400,400);
projectName.setSize(50,15);
}

What doesn’t this add a TextInput field to the movie? Thanks for your help. You guys rock!