I want to open a web page on the same tab when the user clicks a movieclip. I’m using this method:
var url:String = "http://www.google.com";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request);
} catch (e:Error) {
trace("Error occurred!");
}
But I have no idea of how to open it sending POST vars. Is that possible?
Yes, it is possible, by specifying POST as the method on URLRequest, and using flash.net.URLVariables for the vars. This is the example from the documentation:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/URLRequest.html