PDA

View Full Version : getUrl ??



jpb_black
June 10th, 2007, 04:42 PM
I'm having trouble with URLRequest. I'm new to AS3 so sorry it this is a remedial question.

I'm building a site that's mostly html but the navigation is going to be done in Flash. Right now I when select a link it opens a new browser as just loading the page. Below is the code that I'm using.

var request:URLRequest = new URLRequest("http://www.fakewebsitename.com/");
navigateToURL(request);


Thanks in advance for the help.

StarXploser
June 10th, 2007, 04:51 PM
I'm not sure I understand the problem. I'm gonna try to answer but if I'm not answering the right question let me know.

from what I understand it's opening a new window instead of loading the url in the current window.If you want it to load in the current window use this:


navigateToURL(request, "_self")

"_self" specifies the current frame in the current window.
"_blank" specifies a new window.
"_parent" specifies the parent of the current frame.
"_top" specifies the top-level frame in the current window.

jpb_black
June 10th, 2007, 04:59 PM
Perfect! I was trying to put it after the string in the new URLRequest.

Thanks so much!