Packageorg.spicefactory.parsley.core.view.util
Classpublic class StageEventFilterCollection
InheritanceStageEventFilterCollection Inheritance Object

Manages a group of StageEventFilters.



Public Methods
 MethodDefined By
  
addTarget(view:DisplayObject, removedHandler:Function, addedHandler:Function = null):void
Adds a target to filter the stage events for.
StageEventFilterCollection
  
removeTarget(view:DisplayObject):void
Removes a target so that stage event handlers are no longer invoked.
StageEventFilterCollection
Method Detail
addTarget()method
public function addTarget(view:DisplayObject, removedHandler:Function, addedHandler:Function = null):void

Adds a target to filter the stage events for. The specified handlers will only be invoked when an addedToStage or removedFromStage event occurs that is not just temporarily as those that fire when a DisplayObject gets reparented as the result of some LayoutManager operation (e.g. adding scrollbars).

The parameter passed to the handlers is the DisplayObject, not the event.

Parameters

view:DisplayObject — the view to filter all stage events for
 
removedHandler:Function — the handler to invoke for all real removedFromStage events
 
addedHandler:Function (default = null) — the handler to invoke for all real addedToStage events

removeTarget()method 
public function removeTarget(view:DisplayObject):void

Removes a target so that stage event handlers are no longer invoked.

Parameters

view:DisplayObject — the view to stop filtering stage events for