苦苦挣扎:想使用此代码从服务器中删除文件(jpg 或 png) - 而不是 a.jpg 应该是 currentTarget。可能吗?
function nDown_del(e): void
{
e.currentTarget.filters = [Glow_del];
//e.currentTarget.parent.removeChild(e.currentTarget);..............works
mcPopup_del.cont_del.removeChild(e.currentTarget); ///...............works
var proxy:URLLoader = new URLLoader();
var vars:URLVariables=new URLVariables();
vars.filethis ="a.jpg"; //e.currentTarget;
req.data=vars;
req.method= URLRequestMethod.POST;
proxy.load(req);
var req:URLRequest=new URLRequest("http:....path to /php_file.php")
}
php_file---->
$src = $_POST [ 'filethis' ];
unlink($src);