
Untitled
By: a guest on
May 15th, 2012 | syntax:
None | size: 0.61 KB | hits: 13 | expires: Never
Flash Filter XML with as3 using like statement
<contacts>
<contact>
<category> category1 </category>
<name> John Homer </name>
</contact>
<contact>
<category> category1 </category>
<name> John Writer </name>
</contact>
<contact>
<category> category2 </category>
<name> Joshua Homer </name>
</contact>
<contact>
<category> category2 </category>
<name> Alex Homer </name>
</contact>
</contacts>
var johns:XMLList = contacts.contact.(name.toString().indexOf("John") != -1);
var contacts:XML = <contacts>...</contacts>;