This looks like bad code for Flex 2, it appears to be written for Flex 1.5 but the error is from Flex 2.  Check a more recent copy of the Flex Explorer for an example.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rashmi_nraj
Sent: Tuesday, August 22, 2006 1:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] 1119 - ERROR - Please Help

 

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>

__._,_.___

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