This content has been marked as final. Show 3 replies
Can you describe what you're trying to do in a bit more detail? Is the file textbox1.txt on your server, or is it a file on the user's local computer? By "text control" do you mean one of the Flex textfield components?
eeh,, yes its one from the flex components, the text file will be uploaded to the server.
The HTTPService class is your main gateway to accessing data that is on the server. You can data-bind to the "result" property of the HTTPService object to easily expose the text in a UI field.
The main documentation is here: http://livedocs.adobe.com/flex/201/langref/mx/rpc/http/HTTPService.html
Here are two good intros to using HTTPService:
These are both focused on XML data, so your code can probably be even simpler. Just remember to use resultFormat="text" instead of ="e4x".
Hope that helps,