A bit more to it than the old getURL in AS2:
var url:String = "http://site";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank'); // second argument is target
} catch (e:Error) {
trace("Error occurred!");
}
Source: http://scriptplayground.com/tutorials/as/getURL-in-Actionscript-3/
Tech Reference: AS3
Leave a Reply