tags:

views:

52

answers:

0

I am using flashbuilder 4 with a simple datagrid and php. I have paging enabled. When I launch the app, I can page about 3 or 4 times but then it abruptly stops getting more data. I've tried various sdks, including 4.0.0.14159 and 4.1.0.16076...I get the same result.

I followed the tutorial here, where they claim you can do it without a single line of code: http://www.flashrealtime.com/flash-builder-4-and-php-data-services/

Here is the code I have:

<fx:Script>
    <![CDATA[
        import mx.controls.Alert;
        import mx.events.FlexEvent;

        protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
        {
            get_results_pagedResult.token = myService.get_results_paged();
        }

    ]]>
</fx:Script>
<fx:Declarations>
    <s:CallResponder id="get_results_pagedResult"/>
    <myservice:MyService id="myService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
</fx:Declarations>
<mx:DataGrid width="838" height="378" x="93" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{get_results_pagedResult.lastResult}">
    <mx:columns>
        <mx:DataGridColumn headerText="name" dataField="name"/>
        <mx:DataGridColumn headerText="rpt_date" dataField="rpt_date"/>
    </mx:columns>
</mx:DataGrid>