Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/241.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 访问MXML中的url时发生安全错误_Php_Apache Flex_Mxml - Fatal编程技术网

Php 访问MXML中的url时发生安全错误

Php 访问MXML中的url时发生安全错误,php,apache-flex,mxml,Php,Apache Flex,Mxml,我正在从flex调用http服务 <mx:HTTPService id="personRequest" url="http://111.111.1.11/idesk/user.php/userinfo" useProxy="false" resultFormat="text" result="personJSON(event)" fault="anotherMethod(event)" method="post"> <mx:request xmlns=""> <

我正在从flex调用http服务

<mx:HTTPService id="personRequest" url="http://111.111.1.11/idesk/user.php/userinfo" useProxy="false" resultFormat="text" result="personJSON(event)" fault="anotherMethod(event)" method="post">
<mx:request xmlns="">
   <getPerson>"true"</getPerson>
</mx:request>
</mx:HTTPService>
我已将跨域策略文件放在服务器脚本文件夹中,但它并没有解决我的问题


感谢您的帮助。提前感谢。

尝试使用查看flash试图加载的内容。它将显示swf是否从您的服务器访问了crossdomain.xml并显示正确的路径。

您是从文件系统加载的吗?如果是这样,您必须能够在地址栏中看到类似file://。。。 如果是这种情况,Flash Player将不允许您连接到服务器,即使您已配置了cross-domain.xml

您有两种可能的解决方案来解决此问题:

将Flex应用程序托管在web服务器上,您的地址将类似于http:[something] 在Flex编译器参数中添加-use network=false。 您可以找到有关Flex编译器参数的更多信息

我希望这有帮助

Security error accessing url