View Single Post

#1
Bookmark and Share!
navigateToURL help please!
Old 2009-07-03

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
postbit arrow 1 comment | 175 views postbit arrow Reply: with Quote   
tom121
Registered User
tom121 is offline
seperator
Posts: 2
2009-07-03
seperator

Ultrashock Member Comments: