Package | org.spicefactory.parsley.core.view.util |
Class | public class StageEventFilterCollection |
Inheritance | StageEventFilterCollection Object |
Method | Defined 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 |
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
|