Flash, Actionscript, Design, Games and Programming.
Hello again. It’s time for another AS3 basics write up – today I’m doing Links.
Whilst the AS3 code is slightly longer than AS2′s getURL(); it’s still not bad.
//Define the location of the link var url:String = "http://www.lawriecape.co.uk"; //Create a new URL request - var request:URLRequest = new URLRequest(url); //You can then open in the same window - navigateToURL(request, '_self'); //Or open in a new window - navigateToURL(request, '_blank'); |
That’s it. Nice and simple.
Cheers.
This is the blog of Lawrie Cape, an interactive developer from Leeds, England.