I'm trying to bind a chart to an XML document, like this:

/* Script */

var sXML:String = '\
        <data>\
                <item name="Aaa" val="6" />\
                <item name="Bbb" val="46" />\
                <item name="Ccc" val="16" />\
        </data>\
';
                          
gXMLDoc = mx.utils.XMLUtil.createXMLDocument(sXML);
                                
pie.dataProvider = gXMLDoc.firstChild.childNodes;

/* End of Script */


And my series looks like this:


<mx:PieSeries labelPosition="callout" field="val">


But I keep getting the error: "Property val not found on
flash.xml.XMLNode and there is no default value".

What am I doing wrong?

Thanks
--------------------------------------------------------
The information contained in this e-mail and/or any attachments is confidential 
and intended only for the individual(s) to which it is addressed. If you are 
not named as an addressee you must not disclose, copy or take any action in 
reliance of this transmission. This e-mail and its attachments have been 
scanned for viruses by MessageLabs Ltd.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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