     
 	/**
  	 *  @private
-     *  The document is what we need to use toe execute the parameter function.
+     *  The document is what we need to use to execute the parameter function.
      */
     private var document:Object;
     

    private function setupParentObj(newParent:Object):void
    {
		var eventDispatcher:IEventDispatcher;
        var p:String;

        if (parentObj != null &&
            parentObj is IEventDispatcher &&
            events != null)
        {
            eventDispatcher = parentObj as IEventDispatcher;
            
			for (p in events)
            {
                eventDispatcher.removeEventListener(p, eventHandler);
            }
        }
        
		parentObj = newParent;
        
        if (parentObj != null &&
            parentObj is IEventDispatcher &&
            events != null)
        {
            eventDispatcher = parentObj as IEventDispatcher;

            for (p in events)
            {
                if (p != "__NoChangeEvent__")
				{
                    eventDispatcher.addEventListener(
						p, eventHandler, false, EventPriority.BINDING, true);
				}
            }
        }
    }

        this.parameterFunction = parameterFunction;
        this.events = events;
        this.functionGetter = functionGetter;
        this.isStyle = isStyle;
    }

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