If you do not want to listen to the answer, you can remove the dataFormat function, the listener, and the handler function. You can also leave request.method , because GET is by default.
import flash.net.*; var url:String = "http://192.168.1.1:1234/"; var request:URLRequest = new URLRequest(url); var variables:URLVariables = new URLVariables(); variables.name = "Anton Ashardi"; request.data = variables; var loader:URLLoader = new URLLoader(); loader.load(request);
If you do not want to send any data along with your request, you can also omit the central block of code.
source share