1 Reply Latest reply on Sep 1, 2010 2:40 AM by Subeesh Arakkan

    spark list removeChildAt error

    bmilesp Level 1

      I'm trying to remove an item from the spark List called books like so:

       

      books.removeChildAt(books.selectedIndex);

       

      but i get an error when i execute the method:

       

      Error: removeChildAt() is not available in this class. Instead, use removeElementAt() or modify the skin, if you have one.

       

      it won't compile if i use removeElementAt() as the s:List does not have that method. i don't have a skin to modify either.

       

       

      how do i remove the item from the list? thanks -brandon