e4x statement conflicts with local variable?
Posted
by semen
on Stack Overflow
See other posts from Stack Overflow
or by semen
Published on 2010-05-18T13:16:10Z
Indexed on
2010/05/18
13:21 UTC
Read the original article
Hit count: 297
Hi, griends! Somewhere in code i have decalred variable:
[Bindable]
var nameWin:String = "";
after this i have an e4x statement
podContent.xml_m = xml_m.item.(nameWin=="necessary name");
that should compare item's namewin with "necessary name" and return only items whose nameWin matches with "necessary name".
xml_m.item:
<item>
<nameWin>necessary name</nameWin>
<nameCol>??????-?????? ???????????</nameCol>
<date>2009 ???</date>
<summa>259267.7976</summa>
</item>
<item>
<nameWin>unnecessary name</nameWin>
<nameCol>??????-?????? ???????????</nameCol>
<date>2010 ??????</date>
<summa>104.3254</summa>
</item>
<item>
<nameWin>necessary name</nameWin>
<nameCol>??????-?????? ???????????</nameCol>
<date>2010 ???</date>
<summa>21.5174</summa>
</item>
if I use in statement xml-child distinct of nameWin (summa, e. g.), it works good. But with nameWin, e4x compares local variable nameWin (which not interested for me at all at this time) with "necessary name" instead of compare item's nameWin with "necessary name".
Any ideas? Versions of libraries can be reason?
© Stack Overflow or respective owner