I have I input text field on stage and I have a button also, further I am writing some text in that input text field. I want to save my written data on my local system (onmy computer), how can I do this? : adobe flex action script
Answer / Rajeev Kumar Malik
To save the text from an input text field to your local file system, you need to use File and FileStream classes in ActionScript. Here's a simple example:
```actionscript
private function saveText():void {
var stream:FileStream = new FileStream();
stream.open(new File("path/to/your/file.txt"), FileMode.WRITE);
stream.writeUTF(inputTextField.text);
stream.close();
}
```
In this example, the saveText() function saves the text from inputTextField to a file named 'file.txt' in your project's directory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we use text input/editable component as itemrenderer?
Explain what is the function of trace? : adobe flex action script
What are the similarities between java and flex?
Difference between cairngorm event and flex event?
What is the function of trace? : adobe flex action script
How do we identify a component created in a repeater using flex?
What is the problem with calling setstyle()? : adobe flex action script
How can u implement singleton in flex?
What are all the events dispatched in item editor?
How do I get flex to query my database? : adobe flex action script
Explain about cairngorm architecture?
Tell some new capabilities / features of flash as 3.0?