Chat with us, powered by LiveChat

Flash player 9: relative url with colon and dot signs

November 1st, 2007 by Alex Batsuev

Interesting in URLLoader and URLRequest.

If you are trying to load file using relative URL, that contains colon (“:”) and dot(“.”) in param values, you receive security error:

e.g.:
var request:URLRequest = new URLRequest("/test.flash?p=smth::else");
or
var request:URLRequest = new URLRequest("./test.flash?p=smth::else");

are not valid URL’s for Flash Player because flash player doesn’t escape “:” in urls.

You should use absolute URL’s for it:

e.g.:

var request:URLRequest = new
URLRequest("http://localhost:8080/test.flash?p=smth::else");


No Comments Yet

*