Please help me with this..
I am getting the following error
-- 1119: Access of possibly undefined property result through a
reference with static type mx.rpc.http.mxml:HTTPService..
The code i am using is as follows.. I am getting the the error in
the line where the tag <mx:Model> is defined.. Pleae let me know if
I can use the xml file, which is in my local computer when using the
following code..
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
width="100%" height="100%"
initialize="srv.send()">
<mx:HTTPService id="srv" url="">/>
<mx:Model id="results">{srv.result.data.result}</mx:Model>
<mx:LineChart id="chart" dataProvider="{results}"
showDataTips="true" width="100%" height="100%">
<mx:horizontalAxis>
<mx:CategoryAxis dataProvider="{results}"
categoryField="month"/>
</mx:horizontalAxis>
<mx:series>
<mx:Array>
<mx:LineSeries yField="apple" name="Apple"/>
<mx:LineSeries yField="orange" name="Orange"/>
<mx:LineSeries yField="banana" name="Banana"/>
</mx:Array>
</mx:series>
</mx:LineChart>
</mx:Application>