  *  @see mx.states.SetProperty
  *  @see mx.states.SetStyle
  */
-public class SetEventHandler extends EventDispatcher implements IOverride
+public class SetEventHandler extends OverrideBase implements IOverride
 {
-	include "../core/Version.as";
+    include "../core/Version.as";
 
     //--------------------------------------------------------------------------
     //

    //--------------------------------------------------------------------------

    //----------------------------------
	//  name
    //----------------------------------

	[Inspectable(category="General")]

	/**
     *  The name of the event whose handler is being set.
	 *  You must set this property, either in 
	 *  the SetEventHandler constructor or by setting
	 *  the property value directly.
	 */
	public var name:String;

	/**
	 *  The handler function for the event.
	 *  This property is intended for developers who use ActionScript to
	 *  create and access view states.
	 *  In MXML, you can use the equivalent <code>handler</code>
	 *  event attribute; do not use both in a single MXML tag.
	 *  
	 *  @default null
	 */
	public var handlerFunction:Function;

    //----------------------------------
	//  target
    //----------------------------------

	[Inspectable(category="General")]

    /**
     *  The component that dispatches the event.
	 *  If the property value is <code>null</code>, Flex uses the
     *  immediate parent of the <code>&lt;mx:states&gt;</code> tag.
     *
	 *  @default null
     */
	public var target:EventDispatcher;

    //--------------------------------------------------------------------------
    //

    //
    //--------------------------------------------------------------------------

    /**
     *  @private
     */
    override public function addEventListener(
                                    type:String, listener:Function,
                                    useCapture:Boolean = false,
                                    priority:int = 0,
                                    useWeakReference:Boolean = false):void
    {
        if (type == "handler")
            handlerFunction = listener;

        super.addEventListener(type, listener, useCapture,
                               priority, useWeakReference);
    }

    //--------------------------------------------------------------------------
    //
