open URL with Querystring using actionscript 3.0

hi,

this post is not for actionscript masters this is only for those who just started playing with actionscript. this simple example demonstrate how to open a url with querystring HTTP GET method.


import flash.net.navigateToURL;
import flash.net.URLRequest;
import flash.net.URLVariables;

var url:String="http://anilmathewm.blogspot.com/search";
var variables:URLVariables = new URLVariables();
variables.q="actionscript";
var urlRequest:URLRequest = new URLRequest(url);
urlRequest.method="GET";
urlRequest.data=variables;
navigateToURL(urlRequest, "_blank");

0 comments:


PHP developer Cochin |PHP developer Kerala | PHP developer India | Flash developer/programmer Cochin | Flash developer/programmer Kerala | Flash developer/programmer India | web programmer kerala |web programmer Cochin |web programmer India |web developer kerala |Web developer Cochin | Kerala PHP | PHP freelancer| flash actionscript freelancer