No, the in operator is used to determine if an object has a particular
property.  With Array, it will tell you if an index is within the bounds of
the array.

 

In your case, if STATUSID is an integer, it will return true for value
0,1,2,3.

 

I am not sure why it is returning null.  Split the code up into smaller
parts and debug it.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of kpjj31
Sent: Friday, August 07, 2009 6:02 PM
To: flexcoders@yahoogroups.com
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