Thank u Jeff. That worked! Very nice looking class you got there. 
Couldn't agree with u more.

BTW I did have a work around which looked like this

service1.HelloWorld.send();
service1.HelloWorld.addEventListener("result", returnMe);
or 
service1.HelloWorld.addEventListener(ResultEvent.RESULT, returnMe);

but the only problem was i can't call webservices which have 
arguments. But your code has done the trick.


regards
Bod




--- In [email protected], Jeff Tapper <[EMAIL PROTECTED]> wrote:
>
> Take a look at the makeRemoteCall() method of the DataManager 
class I wrote 
> (http://jeff.mxdj.com/as3_datamanager.htm).  This does the flex 2 
version 
> of what you are looking for.
> 
> 
> 
> At 06:51 AM 3/29/2006, bhaq1972 wrote:
> >This is another one of those questions 'i could do this in 
flex1.5 but
> >now cant in flex2b2'.
> >
> >in flex1.5 this worked well
> >var call = service1.HelloWorld(); //service1 is a <mx:WebService>
> >call.onResult = mx.utils.Delegate.create(this, returnHelloWorld);
> >
> >i cant do this in flex2b2 event after removing the Delegate.
> >any ideas?
> >
> >thanks in advance
> >
> >
> >
> >
> >
> >
> >
> >--
> >Flexcoders Mailing List
> >FAQ: 
> 
><http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>ht
tp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >Search Archives: 
> ><http://www.mail-archive.com/flexcoders%
40yahoogroups.com>http://www.mail-archive.com/flexcoders%
40yahoogroups.com 
> >
> >
> >
> >
> >----------
> >YAHOO! GROUPS LINKS
> >
> >    *  Visit your group 
> > "<http://groups.yahoo.com/group/flexcoders>flexcoders" on the 
web.
> >    *
> >    *  To unsubscribe from this group, send an email to:
> >    * 
> > <mailto:[EMAIL PROTECTED]
subject=Unsubscribe>[EMAIL PROTECTED] 
> >
> >    *
> >    *  Your use of Yahoo! Groups is subject to the 
> > <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.
> >
> >
> >----------
>






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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to