So the following code allows us to open an HTML link with the click of a button:
var myURL:URLRequest = new URLRequest("http://www.adobe.com/");
The problem is that this always opens the link in a new window. So what if I want it to open in the same window? Changing the line to:
var myURL:URLRequest = new URLRequest("http://www.adobe.com/","_self");
results in a compiler error.
I am embedding this swf on a web page of my own, so there are no security concerns regarding giving flash access.