Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 15th, 2012  |  syntax: None  |  size: 0.61 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Flash Filter XML with as3 using like statement
  2. <contacts>  
  3.     <contact>
  4.         <category> category1 </category>
  5.         <name> John Homer </name>
  6.     </contact>
  7.     <contact>
  8.         <category> category1 </category>
  9.         <name> John Writer </name>
  10.     </contact>
  11.     <contact>
  12.         <category> category2 </category>
  13.         <name> Joshua Homer </name>
  14.     </contact>
  15.     <contact>
  16.         <category> category2 </category>
  17.         <name> Alex Homer </name>
  18.     </contact>
  19. </contacts>
  20.        
  21. var johns:XMLList = contacts.contact.(name.toString().indexOf("John") != -1);
  22.        
  23. var contacts:XML = <contacts>...</contacts>;