Exporting text from Flash MX?

Say the user types something into my flash program and I want to save it in a text file. How would I go about doing this? Thanks in advance.