e4x statement conflicts with local variable?
- by semen
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?