 
 package com.threerings.flex {
 
-import flash.utils.Dictionary;
-
 import mx.collections.ArrayCollection;
 import mx.collections.Sort;
 


    public function clear () :void
    {
        _values = new Dictionary();
        _players.removeAll();
    }

    /**
     * The PlayerList is meant to include data that is at least as complicated as a Name, so to 
     * keep things simple and extendable, we require Comparable.  This allows the issue of passing
     * the NameLabelCreator into the player renderer to be kept simple and straightforward and still
     * allow efficient item updating.
     */
    public function addItem (value :Comparable) :void
    {
        var currentValue :Array = _values[value] as Array;
        if (currentValue != null) {
            currentValue[1] = value;
            // this is the same array already contained in the list, so the proper renderer should

    protected var _labelCreator :NameLabelCreator;
    protected var _list :AmbidextrousList;
    protected var _players :ArrayCollection = new ArrayCollection();
    protected var _values :HashMap = new HashMap();
}
}

