Tool which allows user to click to add textfield / text on page?

I would like to have a very minimal toolbar for a flash movie - with just 2 tools. One of these would be for the user to click anywhere on the screen to create a text field and then to be able to add text to this, in a position on the screen that they clicked on. It would behave like the text tool in flash. Can anyone point me in the right direction to do this? Is there a tutorial out there or some code you can suggest I use?

The second tool is a simple pen/pencil drawing tool, for which I am going to use the kirupa tutorial which is nice and simple, and works very well!

Thanks.