Hi All,

Maybe a basic question being a new to Flex. I was working the 
Charting Componets in Flex. Here's what i did: copied the code from - 
http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml
(i guess it's not a new URL to this forum) and tried executing it 
locally. However when i copy the 
same code into my system and execute i get an error on the 
<mx:Model>. 
I have pasted the code below for reference - 

<?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="data.xml"/>

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

Where am I do it wrong? Also the Namespace in the URL is Macromedia 
and in my System is Adobe? Dose this make a difference?

Please, please do help me.

Thanks and Regards,
Pramod






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