I have a flash movie using Actionscript 3 with some buttons that open links to new pages. Here is the code I have for redirecting to the new page:
myButton.addEventListener(MouseEvent.CLICK, function(e:MounseEvent) {
var request:URLRequest = new URLRequest('http://www.example.com/page2.html');
navigateToURL(request, "_top");
});
It works fine on my production server with the full url including domain, but when I change it to this:
var request:URLRequest = new URLRequest('page2.html');
it no longer works in production. What am I missing here? I would like to not have to encode the entire URL into the movie.