Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



I have I input text field on stage and I have a button also, further I am writing some text in that ..

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

Post New Answer

More Adobe Flex Interview Questions

mic classes in flex? : adobe flex action script

1 Answers  


How do I get flex to query my database? : adobe flex action script

1 Answers  


How to stop the event flow/ event phases?

1 Answers  


Explain Life cycle of flex appln/component?

1 Answers  


I am going to add images into a tag. How will it resize itself in adobe flex actionscript? : adobe flex action script

1 Answers  


I am going to add images into a tag. How will it resize itself in adobe flex actionscript?

1 Answers  


How do I pass parameters to a pop-up window in actionscript? : adobe flex action script

1 Answers  


Can I upgrade from flex builder 3 standard edition to flex builder 3 professional edition?

1 Answers  


What is display object? : adobe flex action script

1 Answers  


How do we identify a component created in a repeater using flex? : adobe flex action script

1 Answers  


How much will flex builder 3 cost?

1 Answers  


What is a filter function?

1 Answers  


Categories