@Tom
>Why not use a delegate ?
The delegate class is not longer available in the flex framework, so I can't use it.
 
@Jester
I've got still an error. Here my code how I've build it.
 
Service.mxml - subclass from ServiceLocator
<?xml version="1.0" encoding="utf-8"?>
<cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:cairngorm="com.adobe.cairngorm.business.*">
  <mx:WebService
  id     = "webservice"
  wsdl   = "http://123.456.78.90/webservice/webservice.asmx?wsdl"
  result = "event.token.resultHandler(event)"
  fault  = "event.token.faultHandler(event)" />
 </cairngorm:ServiceLocator>
 
index.mxml - Main App
private function init():void
{
    var call:AsyncToken = ServiceLocator.getInstance().getService("webservice").getData();
     call.addEventListener(mx.rpc.events.ResultEvent.RESULT, resultHandler);
}
 
When I use it this way I've got still an error from the debug player: "resultHandler is no function".
 
Any other ideas?
 
Artur
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to