How can we get data from the server in an asynchronous way in Flash? I am looking for something like XHR in actionscript.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you use the URLLoader class you can request data from a server side script.
Personally I use JSON to communicate between server and flash (handy if you want to call the same scripts from javascript). There is a great library for decoding / encoding JSON strings in flash: http://code.google.com/p/as3corelib/