Generate a draggable mc from a button

I have a text input box with a submit button. When the submit button is clicked, I’d like a draggable MC to be created on the stage that contains the input text.

What would be the easiest way to do something like this? Thanks.