     }
 
     /**
-     * The value that will be passed to the command or function based on argName and the
+     * The value that will be passed to the command or function based on argField and the
      * current selected item.
      */
     public function getSelectedValue () :Object
     {
-        return (this.argName != null) ? this.selectedItem[this.argName] : this.selectedItem;
+        return (this.argField != null) ? this.selectedItem[this.argField] : this.selectedItem;
     }
 
     protected function handleChange (event :ListEvent) :void

public class CommandComboBox extends ComboBox
{
    /**
     * The attribute of the selectedItem object that used as the argument to the
     * command or function. If null, the entire selectedItem is passed as the argument.
     */
    public var argName :String;

    /**
     * Create a command combobox.

     * @param cmdOrFn either a String, which will be the CommandEvent command to dispatch,
     *        or a function, which will be called when changed.
     */
    public function CommandComboBox (cmdOrFn :* = null, argField :String = "data")
    {
        CommandButton.validateCmd(cmdOrFn);
        _cmdOrFn = cmdOrFn;
        this.argField = argField;

        addEventListener(ListEvent.CHANGE, handleChange);
    }
