I have a html editor where the user can input data. Then i have a save button and text input box for them to enter a filename. What I need to do is when they hit save it automatically saves data in a file, named by used then add .html at the end and then save it to a folder on a server...
I know that I have to define path and save it on server
Something like this:
var url:String = ';
var urlReq:URLRequest = new URLRequest( url ); navigateToURL( urlReq,
'_blank' ); } But not exactly sure how to do it.. Any help is appreciate...
But not exactly sure how to do it.. Any help is appreciate...
<mx:Label text="Enter the File Name Here: " textAlign="
<mx:TextInput id="fileName" width="
navigateToURL() is used to open web pages, not to save them.
I think you will need to use HTTPService to call a script, such as a PHP, Perl, Python etc. script on the server to accept the data, write the file.
The HTTPService could return a message stating that the save was successful, and then you could automatically use navigateToURL() to open the file just created.
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
Flex / AIR Development, Training, and Support Services