AdobeAIR:RemoteObject可以';你不能和工人一起工作吗?

AdobeAIR:RemoteObject可以';你不能和工人一起工作吗?,air,Air,我对RemoteObject和worker有问题,我使用Flex Builder 4.6开发了AdobeAIR应用程序 在应用程序的主要部分,我可以成功地执行RemoteObject,但在worker中没有相同的代码 this.remoteobj = new RemoteObject(); this.remoteobj.channelSet = this.channelSet; this.remoteobj.destination = "WebDeltabank"; this.remoteob

我对RemoteObject和worker有问题,我使用Flex Builder 4.6开发了AdobeAIR应用程序

在应用程序的主要部分,我可以成功地执行RemoteObject,但在worker中没有相同的代码

this.remoteobj  = new RemoteObject();
this.remoteobj.channelSet = this.channelSet;
this.remoteobj.destination = "WebDeltabank";
this.remoteobj.fExtractSMS.addEventListener("result", onfExtractSMS);
this.remoteobj.addEventListener("fault", onFault);

this.remoteobj.fExtractSMS();

有人能帮我吗?

根据Adobe AIR文档:


“一些运行时API在后台工作程序中运行的代码中不可用。这些主要由与用户输入和输出机制相关的API或操作系统元素(如windows和拖动)组成。通常,对于并非在所有上下文中都受支持的任何API,在尝试使用该API之前,请使用isSupported、available和类似属性检查该API在后台工作上下文中是否可用。“

我想添加一些内容,我无法找到由worker操作脚本生成的错误。感谢您提供的信息,但这不是移动应用程序。它是一个桌面应用程序。AIR for mobile和desktop之间没有太大区别,如果应用程序中存在并发性,则无法从Worker调用某些API方法(例如:Unity3D以相同的方式工作)