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




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to