You basically can write a quick function
as a workaround:
function getChildNodes(xml):Array
{
return xml.firstChild.childNodes;
}
dataProvider=”{getChildNodes(XMLStr)}”
Matt
I am using a Remote object that returns a string
in a XML format, and
converting this string to XML by using
XMLStr = new XML(Str)
I then use XMLStr as dataProvider in a Tree.
<mx:Tree labelFunction="lblFuncCode"
dataProvider="{XMLStr.firstChild.childNodes}" >
</mx:Tree>.
The results are displaying OK, but I get a warning
message:
Changes to unknown
property, childNodes, will not be detected
I think I understand that this means that if I
change XMLStr that change
will not be reflected on my Tree. I read this data
at the beginning and I
don't expect the data to change. This is mainly a
look-up.
How can I avoid this warning?
---------------------------------------------------------------------------
This e-mail message (including attachments, if
any) is intended for the use
of the individual or entity to which it is
addressed and may contain
information that is privileged, proprietary ,
confidential and exempt from
disclosure. If you are not the intended
recipient, you are notified that
any dissemination, distribution or copying of this
communication is
strictly prohibited. If you have received
this communication in error,
please notify the sender and erase this e-mail
message immediately.
---------------------------------------------------------------------------
--
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