| 107 | | /** Return the config and javascript objects to callers. **/ |
| 108 | | public function getConfig():Object { return view.config; }; |
| 109 | | public function getPlaylist():Array { return view.playlist; }; |
| | 109 | /** Return the config and playlist objects to javascript. **/ |
| | 110 | public function getConfig():Object { |
| | 111 | return view.config; |
| | 112 | }; |
| | 113 | public function getPlaylist():Array { |
| | 114 | return view.playlist; |
| | 115 | }; |
| | 116 | |
| | 117 | |
| | 118 | /** Send a call to javascript that the player is ready. **/ |
| | 119 | private function playerReady() { |
| | 120 | var dat = { |
| | 121 | id:ExternalInterface.objectID, |
| | 122 | client:view.config['client'], |
| | 123 | version:view.config['version'] |
| | 124 | }; |
| | 125 | try { |
| | 126 | ExternalInterface.call("playerReady",dat); |
| | 127 | } catch (err:Error) {} |
| | 128 | }; |
| 113 | | private function setController(evt:ControllerEvent) { forward('CONTROLLER',evt.type,evt.data); }; |
| 114 | | private function setModel(evt:ModelEvent) { forward('MODEL',evt.type,evt.data); }; |
| 115 | | private function setView(evt:ViewEvent) { forward('VIEW',evt.type,evt.data); }; |
| | 132 | private function setController(evt:ControllerEvent) { |
| | 133 | forward('CONTROLLER',evt.type,evt.data); |
| | 134 | }; |
| | 135 | private function setModel(evt:ModelEvent) { |
| | 136 | forward('MODEL',evt.type,evt.data); |
| | 137 | }; |
| | 138 | private function setView(evt:ViewEvent) { |
| | 139 | forward('VIEW',evt.type,evt.data); |
| | 140 | }; |