Well you can always subclass to provide that functionality.  We were wary of adding a method that all implementers of IList would have to implement when there is always another way of doing things.  I’ll file your disagreement though.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of gunnar a reinseth
Sent: Thursday, January 26, 2006 12:27 AM
To: [email protected]
Subject: Re: [flexcoders] Collections...

 

Sorry, I of course meant getItemIndex - not getItemAt. It just puzzles me why there isn't a remove() method. It's a bit verbose to write array.removeItemAt( array.getItemIndex( item ) ) instead of array.remove(item). wouldn't you agree?

On 1/26/06, Matt Chotin <[EMAIL PROTECTED]> wrote:

There's getItemIndex (may only be in beta?) which you can use in conjunction with removeItemAt.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of gunnar a reinseth
Sent: Tuesday, January 24, 2006 1:08 AM
To: [email protected]
Subject: [flexcoders] Collections...

 

hi,

For the first time i've tried out the collections api in ActionScript 3, more specifically the IList interface. And it struck me: Where is the remove() method? There's certainly a removeItemAt() and a getItemAt() method. Is remove() just forgotten?

--
gunnar



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



YAHOO! GROUPS LINKS

 

 






--
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




Reply via email to