 import flex.events.ItemExistenceChangedEvent;
 
 import mx.events.IndexChangedEvent;
+import mx.events.CollectionEvent;
+import mx.events.CollectionEventKind;
 	
 /**
  *  Dispatched when the selection is going to change. Calling preventDefault()

 *  The Selector class is the base class for all components that support
 *  selection.
 */
public class Selector extends ItemsComponent
{
    include "../core/Version.as";


     *  @private
     *  Called when an item has been added to this component.
     */
    protected function itemAddedHandler(item:*, index:int):void
    {
        if (selectedIndex == NO_SELECTION || doingWholesaleChanges)
            return;
        
        // If an item is added before the selected item, bump up our
        // selected index backing variable. 
        if (index <= selectedIndex)
            adjustSelectedIndex(selectedIndex + 1);
    }
    
