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], "mikewertheim" <[EMAIL PROTECTED]>
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="restAPI/getProspects?searchString=acme"/>
>    
>     <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
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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/
 



Reply via email to