Yes, *action*_count is a feature of AMFPhp, wrapping the array in a
Arrayf make it work like a (pageable) recordset.
In the client you do a normal service request,
but in your handleResult you should listen to the modelChanged event:
function handleResult(re:ResultEvent) {
var rs:RecordSet = RecordSet(re.result);
rs.addEventListener('modelChanged', this);
...
}
function modelChanged(info:Object) {
//info={event:"addRows", firstRos:xxx, lastRow:yyy}
...
}
when you do a rs.getItemAt(x) and x isn't already fetched from the
server, a page request is made and then a modelChanged event is triggered.
You can find more info here:
http://amfphp.sourceforge.net/docs/pageablerecordsets.html
bye
Marcelo de Moraes Serpa ha scritto:
> Hi Marco,
>
> This *action*_count is a built-in feature of amfphp, right? What code
> should
> be on the client side for this to work? (AFAIK it only works when you are
> using the recordset class).
>
> Also, why do you wrap the array returned by Cake into the Arrayf object?
>
> Cheers,
>
> Marcelo.
--
Marco Madarco
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org