Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/236.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 JSON发送到操作脚本3.0 text=Error#2032_Php_Actionscript 3_Twitter Oauth - Fatal编程技术网

将PHP JSON发送到操作脚本3.0 text=Error#2032

将PHP JSON发送到操作脚本3.0 text=Error#2032,php,actionscript-3,twitter-oauth,Php,Actionscript 3,Twitter Oauth,我真的需要动作脚本3.0:S的帮助。这种语言对我来说是全新的 我正试图将亚伯拉罕的Twitter OAuth结果从PHP发送到AS3,并从那里进行操作 当我的PHP将OAUTH-Twitter-JSON回显/发送到AS3时,我收到以下错误: 错误#2044:未处理的ioError:。text=错误#2032:流错误。网址: /my/php/link/这里是as3pptesting02_-fla::main timeline/frame1() 我想做的只是在AS3中看到结果 我在PHP:echo“

我真的需要动作脚本3.0:S的帮助。这种语言对我来说是全新的

我正试图将
亚伯拉罕的Twitter OAuth
结果从
PHP
发送到
AS3
,并从那里进行操作

当我的
PHP
OAUTH-Twitter-JSON
回显/发送到
AS3
时,我收到以下错误:

错误#2044:未处理的ioError:。text=错误#2032:流错误。网址: /my/php/link/这里是as3pptesting02_-fla::main timeline/frame1()

我想做的只是在AS3中看到结果

我在
PHP:echo“returnData=“.result

我使用了:
var-jsonTwitter:JSON=e.target.data
或`data.someparam


我希望有人能指引我。我知道我正在做一些非常转储的事情。

错误意味着您没有处理一个,这通常是在您尝试加载不存在的东西时调度的。例如,尝试运行此命令,您将得到相同的错误:

var req:URLRequest = new URLRequest("nonexistantfile.txt")
var ldr:URLLoader = new URLLoader(req);
您可以通过将事件侦听器附加到将管理
IOErrorEvent
URLLoader
来避免错误:

ldr.addEventListener(IOErrorEvent.IO_ERROR, error);
function error(e:IOErrorEvent):void
{
    trace("There was an error!");
}

但真正的问题是您在
URLRequest
中使用的路径不正确。

非常感谢您的处理部分。我费了好大劲才弄清楚这次活动的名称。对于请求部分,当我将一个常规字符串从php传递到as3时,它工作得非常好。但是传递一个php json对象会触发此错误。问题可能出在json格式上吗?在php中,我们将有stdclass对象和东西。@iMohammad在输出的前面有
returnData=
,这将使它无效。