Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.conceptualideas.videoplayer.modules.interfaces {
- import com.conceptualideas.videoplayer.core.hooks.Hooks;
- import com.conceptualideas.videoplayer.events.BaseComponent;
- import com.conceptualideas.videoplayer.events.AbstractView;
- import com.conceptualideas.videoplayer.events.HookingEvents;
- import com.conceptualideas.videoplayer.interfaces.ISystemHook;
- import com.conceptualideas.videoplayer.utils.Reflection;
- import flash.utils.Dictionary;
- /**
- * ...
- * @author Conceptual Ideas
- */
- public class Hooker extends BaseComponent{
- private var _hooks:Dictionary = new Dictionary();
- public function Hooker() {
- this.
- }
- override public function initalize(view:AbstractView):void {
- super.initalize(view);
- Hooks.init(Reflection.getClassConst(HookingEvents,true));
- }
- public function getName():String {
- return "hooker";
- }
- public function run(type:String, callback:Function, scope:Object = null):void {
- Hooks.run(type, callback, scope);
- }
- public function hook(type:String, name:String, func:Function, scope:Object = null, sync:Boolean = true):ISystemHook {
- return Hooks.hook(type,name,func,scope,sync)
- }
- public function unhook(type:String, func:Function = null, removeAll:Boolean = false):Boolean {
- return Hooks.unhook(type, func, removeAll);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement