Use the click event of the button to call list.removeAll() to remove all
of the items or removeItemAt(int) to remove a specific list item.

Is that what you are asking? If you want to remove the list item that is
selected, you should be to just do
list.removeItemAt(list.selectedIndex); in the click event handler for
the button.

|<


Karl Johnson
Cynergy Systems
http://www.cynergysystems.com

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of merrittwchapman
Sent: Monday, April 10, 2006 3:30 PM
To: [email protected]
Subject: [flexcoders] Removing Items from a list

Can someone provide me with an example of how to use actionscript to
remove items from a list control by clicking a button?

Thanks!
MC






--
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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to