I think you want

return statusGroup.indexOf(item.STATUSID) != -1

Make sure STATUSID is a number/int and not a String, or convert it.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of kpjj31
Sent: Friday, August 07, 2009 3:02 PM
To: [email protected]
Subject: [flexcoders] ArrayCollection filterFunction returning item in array;



Is it possible to use the ArrayCollection filterFunction that returns items 
from an Array?

This returns null...

private function filterStatus(item:Object):Boolean {

var statusgroup:Array = [0, 1, 88, 44];
return item.STATUSID in (statusgroup);

}

Reply via email to