In AS2.0 "LoadVars" class was used, in AS3.0 it has been replaced by a much richer and more powerful set of classes.In AS3.0 the first thing you do is create an instance of a "URLRequest" class.
For that flash.net.* Package is used.
To just go to another webpage use flash.net.navigateToURL(URLRequest Object);
GET is used when Data is to be send in address bar and POST is used when its hidden in the actual HTTP request.
Method of Sending is set by the "method" property of "URLRequest" class. i.e.
var request : URLRequest = new URLRequest("http://server.com");
request.method = "GET";
For sending the data ,"data" property of "URLRequest" class is used.
i.e.
request.data = "name=josh&login=true";
No comments:
Post a Comment
Suggestions are heartily awaited.