I didn't entirely understand your answer, but now that I tried this, it works, and your answer made more sense: var pendingCall = myService.someMehtod(arg:Type, arg2:Type); pendingCall.resultHandler = resultMethod; The RemoteObject, myService is being created in the main app, this code is being used in a component. So I see that the scope issues are taken care of automatically, which is nice. The reason I am doing this is because my services will be passed into each component by the main app, so if different components need to call the same methods, I need local result handlers. On Mar 24, 2006, at 11:15 AM, Johannes Nel wrote: delegates are build into as3, so if you assign an event handler it will execute in the right scope. i cannot help you with WS implementation in AS3 yet. |
- [flexcoders] What happened to mx.utils.Deletage? Chris Scott
- Re: [flexcoders] What happened to mx.utils.Deletage? Johannes Nel
- Re: [flexcoders] What happened to mx.utils.Deleta... Chris Scott
- Re: [flexcoders] What happened to mx.utils.De... Johannes Nel
- Re: [flexcoders] What happened to mx.util... Johannes Nel
- Re: [flexcoders] What happened to mx.utils.De... Chris Scott
- RE: [flexcoders] What happened to mx.utils.Deletage? Sho Kuwamoto
- RE: [flexcoders] What happened to mx.utils.Deleta... Richard Leggett
- RE: [flexcoders] What happened to mx.utils.De... Sho Kuwamoto
- RE: [flexcoders] What happened to mx.utils.Deletage? Ted Patrick
- Re: [flexcoders] What happened to mx.utils.Deleta... Chris Scott
- Re: [flexcoders] What happened to mx.utils.De... Chris Scott