For every method defined in the remote object there should be fault and result function
//result function
private function getFullDetailsSuccessfull(evt:ResultEvent):void
{
PopUpManager.removePopUp(initial);
CursorManager.removeAllCursors();
jobMaster.removeAll();
jobMaster = ArrayCollection(evt.result);
}
// fault function
private function getFullDetailsFailed(evt:FaultEvent):void
{
this.enabled =true;
Alert.show("There was an error communicating to theserver:"+evt.fault.faultCode);
}
Corresponding to this there should be entry in remoting-config.xml
the destination should be same defined in the mxml file
No comments:
Post a Comment