Flex HTTP open, send, load functions

An example of the three different ones. These don’t cover any mxml service type things. Maybe later.

navigateToUrl - Will open a page with the url specified.

sendToUrl - Will send a request behind the scenes, but won’t tell you what the response was…

URLLoader - Will allow you listen for a response or know when the request you just sent has been completed (acknowledged). 

Example and source:

http://wookets.com/code/flex/SendDataDemo/

I should mention that for the URLLoader I had to stick a crossdomain.xml policy file at the root of my web directory. Which you’ll need if you get the security sandbox violation error.

Another simplistic example, but just needed a refresher myself… One of the next posts should be how to interact with Google’s Spreadsheet API, so perhaps that will feel more meaningful than these last few examples.

Published by using 137 words.