Be sure to pass the event into the handler funcction declaration: result="onResult(event)"
and the handler: import mx.rpc.ResultEvent; private function onResult(oEvent:ResultEvent):void { //then your result will be in oEvent.result; //if the resultFormat="e4x", and you use an expression that reutrhs an XMLList, then you can get the length of that XMLList. Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben Marchbanks Sent: Monday, November 27, 2006 2:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] lastResult.records.record.length=null when there's actually 1 myRequest.event.result.length ?? Not sure I understand how to use event.result to get the count of the records returned. Tracy Spratt wrote: > And avoid using lastResult except for binding. > > > > Instead use event.result. > > > > Tracy > > > > ________________________________ > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of Iko Knyphausen > Sent: Friday, November 24, 2006 10:43 PM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: RE: [flexcoders] lastResult.records.record.length=null when > there's actually 1 > > > > Does it behave the same if you use "e4x" as resultFormat? > > ________________________________ > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of pdflibpilot > Sent: Friday, November 24, 2006 5:35 PM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] lastResult.records.record.length=null when there's > actually 1 > > > > I use the following to get a count of the records returned by > HTTPService request. > > myListRequest.lastResult.records.record.length; > > When theres only 1 the result is null ? Otherwise the count is fine > whenever it is 2 or more. Is this the expected result ?? > > > >