Unfortunately, I think I remember looking at the source of the ListCollectionView and it only check object(item) reference.
So what you are doing will not work.
You could easily subclass ListCollectionView and override contains to do what you want there. Just create your own implementation. Actually, you should just create a new public method for your class like;
containsLikeObject(), hmm maybe that isn't good.
You could override contains and first call super.contains() then you still get the inherent ref check. If that returns false, then go into your custom loop and test the way you want for the below conditions.
Peace, Mike
On 8/24/06, Webdevotion <[EMAIL PROTECTED]> wrote:
Hello,
Can someone explain me the use of ListCollectionView.contains( ) ?
I can't get it to work.
var keyword:String = txtSearch.text;
if( !keywords.contains( {label:keyword} ))
{
keywords.addItem( {label:keyword} );
}
tnx !
--
What goes up, does come down. __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- [flexcoders] ListCollectionView.contains( ) Webdevotion
- Re: [flexcoders] ListCollectionView.contains( ) Michael Schmalle
- [flexcoders] Re: ListCollectionView.contains( ) Geoffrey Williams
Reply via email to