| Revision 88,
912 bytes
checked in by jeroen, 5 years ago
(diff) |
|
merged 4.2 player to trunk
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | /** |
|---|
| 2 | * Player that crunches through all media formats Flash can read. |
|---|
| 3 | **/ |
|---|
| 4 | package com.jeroenwijering.player { |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | import com.jeroenwijering.player.*; |
|---|
| 8 | import com.jeroenwijering.plugins.*; |
|---|
| 9 | import flash.display.MovieClip; |
|---|
| 10 | import flash.events.Event; |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | public class Desktop extends Player { |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | /** Initialize and start the desktop player. **/ |
|---|
| 17 | public function Desktop():void { super(); }; |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | /** When added to stage, the player loads the config. **/ |
|---|
| 21 | override protected function loadConfig(evt:Event=null):void { |
|---|
| 22 | config['frontcolor'] = 'CCCCCC'; |
|---|
| 23 | config['lightcolor'] = '99CC00'; |
|---|
| 24 | config['autostart'] = true; |
|---|
| 25 | loadSkin(); |
|---|
| 26 | }; |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | /** MVC inited; now load plugins. **/ |
|---|
| 30 | override protected function loadPlugins():void { |
|---|
| 31 | new Rightclick().initializePlugin(view); |
|---|
| 32 | new Display().initializePlugin(view); |
|---|
| 33 | new Controlbar().initializePlugin(view); |
|---|
| 34 | new Dragdrop().initializePlugin(view); |
|---|
| 35 | startPlayer(); |
|---|
| 36 | }; |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | } |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.