I had a situation like.... I need to save a text area field in the form of .text file automatically when ever the text area is changed/edited. Please some one help me.
Thanks in advance
I had a situation like.... I need to save a text area field in the form of .text file automatically when ever the text area is changed/edited. Please some one help me.
Thanks in advance
In a Flex TextInput or TextArea you can use the change event to detect when something has changed. So, you'll probably want to use that to trigger your "save this text" code.
If you want to save things as a file on the server, then you can use that change event to trigger your service.
If you want to save things on the client machine, you may have more difficulty.
If you're dealing with an AIR application, you can save the file locally using the File class.
In a browser based app; you cannot save files without user input. So the location, and filename of the file is beyond your control. Accessing that file at some future point also requires user input.
You may be able to store the value as a shared object, which is in essence the Flex version of a cookie.