source: trunk/fl5/src/com/longtailvideo/jwplayer/view/CoreComponent.as @ 376

Revision 376, 1.6 KB checked in by zach, 4 years ago (diff)

Updating CoreComponent interfaces

Line 
1package com.longtailvideo.jwplayer.view {
2        import com.longtailvideo.jwplayer.events.GlobalEventDispatcher;
3        import com.longtailvideo.jwplayer.events.IGlobalEventDispatcher;
4       
5        import flash.display.MovieClip;
6        import flash.events.Event;
7        import flash.events.IEventDispatcher;
8
9        public class CoreComponent extends MovieClip implements IGlobalEventDispatcher {
10
11                private var _dispatcher:IGlobalEventDispatcher;
12
13                public function CoreComponent() {
14                        _dispatcher = new GlobalEventDispatcher();
15                        super();
16                }
17               
18                public function resize(width:Number, height:Number):void {
19                        return;
20                }
21               
22                public function hide():void {
23                        return;
24                }
25               
26                public function show():void {
27                        return;
28                }
29               
30                public function block(name:String, timeout:Number):void {
31                        return;
32                }
33               
34                public function unblock(name:String, timeout:Number):void {
35                        return;
36                }
37               
38                public function lock(name:String, timeout:Number):void {
39                        return;
40                }
41               
42                public function unlock(name:String, timeout:Number):void {
43                        return;
44                }
45               
46                ///////////////////////////////////////////             
47                /// IGlobalEventDispatcher implementation
48                ///////////////////////////////////////////             
49                /**
50                 * @inheritDoc
51                 */
52                public function addGlobalListener(listener:Function):void {
53                        _dispatcher.addGlobalListener(listener);
54                }
55               
56               
57                /**
58                 * @inheritDoc
59                 */
60                public function removeGlobalListener(listener:Function):void {
61                        _dispatcher.removeGlobalListener(listener);
62                }
63               
64               
65                /**
66                 * @inheritDoc
67                 */
68                public override function dispatchEvent(event:Event):Boolean {
69                        _dispatcher.dispatchEvent(event);
70                        return super.dispatchEvent(event);
71                }
72        }
73}
Note: See TracBrowser for help on using the repository browser.