Hi,
I'm trying to use XML as a dataprovider to charts and the short
useless blurb in the flex 2 manual isn't helping. If I use
<mx:HTTPService to get my xml then bind that to the dataprovider to a
<mx:AreaChart it works fine:
<mx:HTTPService id="getXML"/>
...
<mx:AreaChart width="100%"
dataProvider="{getXML.lastResult.xport.data.row}">
...
Where the xml is in the form of:
<xport>
<data>
<row/>
...
</data>
</xport>
But if I try to assign the dataprovider dynamicly in actionscript
using a urlloader/urlrequest then doing a :
myXML = XML(myLoader.data);
as the docs suggest I can't just go:
myChart.dataProvider = myXML
Or any part of myXML like myXML.xport.data.row
Is there a way to stick myXML into the dataprovider or is the correct
way to go through all this MXML (I'd rather use AS)?
Thanks
--
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/