Привет! При загрузке картинок с сайта Facebook, вылетает ошибка

Код:
SecurityError: Error #2000: Отсутствует активный контекст безопасности.
изза чего это может быть и как это устранить?

Вот код которым я гружу картинки

Код AS3:
package com.main
{
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
public class FriendPhoto extends MovieClip
{
private var userPath:String = "";
private var imgLoader:Loader;
private var context:LoaderContext;
public function FriendPhoto(userPath:String)
{
trace("FRIEND ADDED");
this.userPath = userPath;
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void
{
trace("UserPhoto Created " + userPath);
result_txt.text = userPath;
loadFriendPicture();
}
function loadFriendPicture():void
{
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onPictureLoaded, false, 0, true);
var request:URLRequest = new URLRequest("facebookProxy.php");
var variables:URLVariables = new URLVariables();
variables.path = userPath;
request.data = variables;
loader.load(request);
}
function onPictureLoaded(e:Event):void
{
var loader:Loader=e.target.loader;
loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onPictureLoaded);
//loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, onMyPictureLoadError);
var bitmap = Bitmap(loader.content);
var bitmapRatio:Number = bitmap.width/bitmap.height;
var maskRatio:Number = mask_mc.width/mask_mc.height;
if (stageRatio >= imageRatio)
{
// match image width and adjust height to fit
bitmap.width = maskRatio.width;
bitmap.height = maskRatio.width/bitmapRatio;
} else
{
// match image height and adjust width to fit
bitmap.height = mask_mc.height;
bitmap.width = mask_mc.height*bitmapRatio;
}
bitmap.smoothing=true;
//Note: picturePlaceholder is just a blank movie clip on the Stage
bitmap.mask = mask_mc;
bitmap.x = mask_mc.x;
bitmap.y = mask_mc.y;
addChild(bitmap);
//result_txt.text = userPath + "LOADED";
trace("Some actions with the image!");
preloader.visible = false;
}
}
}
Вот содержимое файла facebookProxy.php

Код:
<?php
$path=$_GET['path'];
if (stristr($path, "fbcdn.")==FALSE && stristr($path, "facebook.")==FALSE)
{
echo "ERROR";
exit;
}
header("Content-Description: Facebook Proxied File");
header("Content-Type: image");
header("Content-Disposition: attachment; filename=".$path);
@readfile($path);
?>