There was a change in beta 3. Try using lastResult (i.e
srv.lastResult.prospectList.prospect). You can still use result
in actionscript through the event object in your result listener:
hi mike
is that all of your code??? post the ActionScript code,
if you
have any.
and part of the xml to,
--- In [EMAIL PROTECTED]ups.com,
"mikewertheim" <mike.wertheim@...>
wrote:
>
> I'm
having trouble accessing an HttpService in Beta 3.
>
> The problem
I'm having is similar to the one described in the comment
> at the bottom
of this page:
>
http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001124.html
>
>
> Here is my MXML:
> <?xml version="1.0"
encoding="utf-8"?>
> <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"
>
xmlns:nf="Assets.Components.*"
> layout="absolute" width="100%"
height="100%"
> paddingTop="10" paddingRight="10"
paddingBottom="10"
paddingLeft="10">
>
>
<mx:HTTPService id="srv" useProxy="false"
>
url=""/>
>
> <mx:TextInput y="81" width="169"
horizontalCenter="-36.5"
> id="searchInput"/>
>
<mx:Button y="81" label="Search" horizontalCenter="88.5"
>
click="currentState='results'" id="searchButton"/>
>
> <mx:states>
> <!-- The Search Result state
-->
> <mx:State name="results">
> <mx:AddChild
position="lastChild">
> <mx:Panel layout="absolute"
title="Prospects Found"
> id="panel1">
> <mx:DataGrid
id="ProspectList"
>
dataProvider="{srv.result.prospectList.prospect}">
> <mx:columns>
> <mx:DataGridColumn
headerText="Name"
> dataField="name"/>
>
<mx:DataGridColumn headerText="Company"
>
dataField="company"/>
> </mx:columns>
>
</mx:DataGrid>
> </mx:Panel>
>
</mx:AddChild>
> </mx:State>
>
</mx:states>
> </mx:Panel>
>
>
> When I
try to compile this, I get the following error on the
> "mx:DataGrid"
line:
> Access of possibly undefined property result through a reference
with
> static type mx.rpc.http.mxml:HTTPService.
>
> Any ideas on what's going wrong and how to fix it?
>
>
> Thanks!
> Mike
>