08-09-2009

ActionScript loading external link - geturl equivalent in AS3

the geturl function that excisted in as2 has been replaced with a call to the navigateToURL method that takes an URLRequest object as it's first argument. Simple example including onclick eventlistener:

 
displayobjectinstance.addEventListener(MouseEvent.CLICK,function(e:MouseEvent){
	var r:URLRequest = new URLRequest("http://www.hardcode.nl");
	navigateToURL(r,'_blank');
})
 

Comments:

Your comment:

»

 

[x]