publicfunction getRecipes(params:Array):void { // we access the RemoteObject stored in the ServiceLocator by using the Cairngorm ServiceLocator singleton // and passing a reference to the id of the RemoteObject that we wish to call var service:RemoteObject = com.adobe.cairngorm.business.ServiceLocator.getInstance().getRemoteObject("recipeService"); var token:AsyncToken = service.send(params); var responder:mx.rpc.Responder= new mx.rpc.Responder(getRecipeResult, getRecipeFault); token.addResponder(responder); }