I'm trying to get a picture, requiring htaccess login. I know the username and the password, but when I try to log with them in the url it returns:
Error opening URL 'http://85.217.***.***/image.jpg?cachebust=0&a=0'
SecurityError: Error #2000: No active security context.
However, when I open the published swf via flashplayer it asks me for username and password. Not the same in the browser. How can I log in the server? Here is my code: ` package {
import flash.display.MovieClip;
import flash.net.URLRequest;
import flash.utils.*;
import flash.display.Loader;
public class Camera extends MovieClip {
public function Camera() {
setInterval(callImage, 500);
}
private function callImage():void {
var imageLoader:Loader = new Loader();
var image:URLRequest = new URLRequest("http://85.217.***.***/image.jpg?cachebust="+Math.floor(Math.random())+"&a=0");
imageLoader.load(image);
addChild (imageLoader);
}
}
} `