Url request - Hyperlink

package {
import flash.display.Sprite;
import flash.net.URLRequest;
import flash.net.navigateToURL;

/**Hyperlink is a URL Request example
* ...
* @author Adam J Nowak
*/

public class Hyperlink extends Sprite {
public function Hyperlink():void {
browseToThisAddress("http://hyperspatial.com");
}

function browseToThisAddress(address:String):void {
var urlRequest:URLRequest=new URLRequest(address);

navigateToURL(urlRequest, "_self");
}
}
}

1 Comment

You must be logged in to post a comment.


  1. Very nice blog. Thanks for the great tips!