In Flex 2.0, the XML class is now the new
e4x class. The old XML is still available by using XMLDocument. That message indicates you still have some
confusion between the two XML classes. There is NO XMLNode in e4x.
Everything is just XML. But mx.utils.XMLUtil.createXMLDocument(sXML);
I bet is returning that old class, and there is no @ in that class. Decide which xml you really want to
use. (Use e4x unless you have a really good reason not to). Look at
the docs on e4x, they are very short, then post back. Tracy From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Tuppeny I wasn't deliberately using E4X (I don't
really know what it is!!). I thought I was using XML! :-) I added an @ and get the same issue: "Property @val not found on
flash.xml.XMLNode and there is no default value." Any ideas? From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Ely Greenfield In E4X parlance, attributes are referred
to by prefixing their name with @. i.e., to get the val of the first item
in your code, you would write: [EMAIL PROTECTED]; So to have a data component (chart, list,
etc) pull a value from an attribute, you need to do the same: <PieSeries field="@val" /> Ely. From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Tuppeny I'm
trying to bind a chart to an XML document, like this:
-- 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
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Binding chart to XML Tracy Spratt
- RE: [flexcoders] Binding chart to XML Daniel Tuppeny