¿Creating a .txt in Flash?

What I NEED to do in the next couple days for a very important school project is ----

Make a little flash .swf thinger that I can walk around talking to people (this is all done) and be able to fill out forms and make a .txt’s from the information filled into form sort things.

I need a way to call up the information, but I can take care of that too.

All I need to know is how to make flash make a txt when the user clicks a button, in the same directory that it is in.

I have access to Flash MX and DreamWeaver MX.

Please help, my programming mark needs it some bumpin’ up.

Edit: Cool. 1500 posts.