Ok, so the other post I have is quite crazy and extensive and does silly PHP updating and what not. I keep trying not to remember the following code. So I am going to put it here. it is also named getURL, and is basically a quick and dirty function for going to a new site… no silly PHP calls.
function getUrl( url:String, page:String = '_blank' ) : void
{
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, page); // second argument is target
} catch (e:Error) {
trace("Error occurred!");
}
}
getUrl( "http://yo.drpunchman.com", "_self" )

Post a Comment