这是我的代码:
public class Schem
{
public var info:String="";
private var ro:RemoteObject = new RemoteObject("Hibernatetest");
public function Schem()
{
ro.endpoint = "http://jesus/blazeds/messagebroker/amf";
}
public function loadCurrentSchem():void
{
var token:AsyncToken = ro.getCells();
token.addResponder(new AsyncResponder(onResult,onFault));
info = info + "Loader Called ...";
}
private function onResult(event:ResultEvent,token:Object):void {
var cellList:ArrayCollection = event.result as ArrayCollection;
info = info + "Resulthandler Called";
}
private function onFault(event:FaultEvent,token:Object):void
{
}
//Eventhandlers
//Getters, Setters
}
通过检查我发现的信息字符串,当我调用 loadCurrentSchem() 时,该类没有到达 Resulthanlder。这是为什么?