Resources: ActionScript 3

Go to URL with AS3

27 September 2012

Actionscript 3 uses a very different approach to sending a user to a URL, and you can implement this with the following code:

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!");

Tags: , ,

Let's work together