For proxy.invoke, pass resultHandler (no quotes) as the third parameter. The resultHandler function will then be called with the results as its parameter instead of an event.
Doug --- In [email protected], "Simeon Bateman" <[EMAIL PROTECTED]> wrote: > > I started using the Fast toolkit as a proxy for my remote services > today. On the whole I am very happy. > > HOwever I am having some trouble figuring out how to use a local > resultHandler with my calls. For instance I am calling a method that > returns an object and I want to bind that to a list or something. > Pretty easy to do if I can use ArrayUtils.toARray to convert it. but > I cant figure out how to get a local result handler to fire. > > Somthing simple like this: > > private function getMember(){ > var proxy:Proxy = ProxyFactory.getProxy("memberService"); > proxy.invoke("getMembers", //remote method > this, //local reply > object > "memberArray", //local reply destination > //remote method > inputs: > 50, //- # records > requested > 1, //- index of first record > 0); //- server delay > (ms) > > } > function resultHandler(event):Void{ > var result = event.result; > memberArray=mx.utils.ArrayUtil.toArray(result); > mx.controls.Alert.show(memberArray.length.toString()); > } > > Any ideas? > > Thanks, > > simeon > -- 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/

