Changeset 66 for branches/4.2/com/jeroenwijering/player/Player.as
- Timestamp:
- 09/22/08 11:14:49 (5 years ago)
- File:
-
- 1 edited
-
branches/4.2/com/jeroenwijering/player/Player.as (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/com/jeroenwijering/player/Player.as
r64 r66 20 20 description:undefined, 21 21 duration:0, 22 file: undefined,22 file:'http://www.jeroenwijering.com/upload/xspf.xml', 23 23 image:undefined, 24 24 link:undefined, … … 35 35 controlbarsize:20, 36 36 height:300, 37 icons:true, 37 38 logo:undefined, 38 playlist:' none',39 playlist:'bottom', 39 40 playlistsize:180, 40 41 skin:undefined, … … 42 43 43 44 autostart:false, 44 bufferlength: 0.1,45 bufferlength:10, 45 46 displayclick:'play', 46 47 item:0, … … 58 59 id:undefined, 59 60 linktarget:'_blank', 60 margins:'0,0 ,0,0',61 margins:'0,0', 61 62 plugins:undefined, 62 63 streamer:undefined, 63 64 token:undefined, 64 trace call:undefined,65 version:'4. 1.60'65 tracer:undefined, 66 version:'4.2.64' 66 67 }; 67 68 /** Object that loads all configuration variables. **/ … … 77 78 78 79 79 /** Constructor; Loads config parameters. **/80 /** Constructor; waits for stage adding. **/ 80 81 public function Player():void { 81 82 visible = false; 83 addEventListener(Event.ADDED_TO_STAGE,stageHandler); 84 }; 85 86 87 /** When added to stage, the player loads the config. **/ 88 private function stageHandler(evt:Event):void { 89 removeEventListener(Event.ADDED_TO_STAGE,stageHandler); 82 90 configger = new Configger(this); 83 91 configger.addEventListener(Event.COMPLETE,configHandler); … … 100 108 _view = new View(configger.config,loader,controller,model); 101 109 controller.start(model,_view); 102 visible = true;103 110 addPlugins(); 104 111 }; … … 107 114 /** MVC inited; now add plugins. **/ 108 115 private function addPlugins() { 109 if(loader.skin['captions']) { new Captions().initializePlugin(view); } 110 if(loader.skin['controlbar']) { new Controlbar().initializePlugin(view); } 111 if(loader.skin['display']) { new Display().initializePlugin(view); } 112 if(loader.skin['playlist']) { new Playlist().initializePlugin(view); } 116 new Rightclick().initializePlugin(view); 117 new Display().initializePlugin(view); 118 new Controlbar().initializePlugin(view); 119 if(loader.skin['playlist']) { 120 new Playlist().initializePlugin(view); 121 } 122 visible = true; 113 123 loader.loadPlugins(configger.config['plugins']); 114 124 };
Note: See TracChangeset
for help on using the changeset viewer.
