Hello,
I'm trying to load another html page (what.html) when my swf gets to a point in the timeline. I'm using the following code on the frame where I want the new page to load but nothing happens:
Code:
var url:String = "what.html";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "_self");
} catch (e:Error) {
trace("Error occurred!");
}
When I view in the Flash player a new browser window pops up but when I view in a web browser nothing happens...
As far as I can tell from searching around this is the correct code, but should I be using it differently?
Thanks