Changeset 57 for trunk/as3/com/jeroenwijering/player/SWFLoader.as
- Timestamp:
- 08/12/08 05:04:55 (5 years ago)
- File:
-
- 1 edited
-
trunk/as3/com/jeroenwijering/player/SWFLoader.as (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/as3/com/jeroenwijering/player/SWFLoader.as
r52 r57 35 35 * @param ply The player instance. 36 36 **/ 37 public function SWFLoader(ply:MovieClip) {37 public function SWFLoader(ply:MovieClip):void { 38 38 player = ply; 39 39 amount = 0; … … 46 46 * @prm pgi A commaseparated list with plugins. 47 47 **/ 48 public function loadPlugins(pgi:String=null) {48 public function loadPlugins(pgi:String=null):void { 49 49 if(pgi) { 50 50 var arr = pgi.split(','); … … 62 62 * @param cfg Object that contains all configuration parameters. 63 63 **/ 64 public function loadSkin(skn:String=null) {64 public function loadSkin(skn:String=null):void { 65 65 if(skn) { 66 66 loadSWF(skn,true); … … 73 73 74 74 /** Load a particular SWF file. **/ 75 public function loadSWF(str:String,skn:Boolean) {75 public function loadSWF(str:String,skn:Boolean):void { 76 76 if(str.substr(-4) != '.swf') { str += '.swf'; } 77 77 var ldr = new Loader(); … … 98 98 99 99 /** SWF loading failed; use default skin. **/ 100 private function pluginError(evt:IOErrorEvent) {100 private function pluginError(evt:IOErrorEvent):void { 101 101 amount--; 102 102 if (amount == 0) { … … 107 107 108 108 /** Plugin loading completed; add to stage and populate. **/ 109 private function pluginHandler(evt:Event) {109 private function pluginHandler(evt:Event):void { 110 110 var clp = evt.target.content; 111 111 player.addPlugin(clp); … … 118 118 119 119 /** SWF loading failed; use default skin. **/ 120 private function skinError(evt:IOErrorEvent=null) {120 private function skinError(evt:IOErrorEvent=null):void { 121 121 skin = player['player']; 122 122 dispatchEvent(new Event(Event.INIT)); … … 125 125 126 126 /** Skin loading completed; add to stage and populate. **/ 127 private function skinHandler(evt:Event) {127 private function skinHandler(evt:Event):void { 128 128 var clp = evt.target.content; 129 129 if(clp['player']) {
Note: See TracChangeset
for help on using the changeset viewer.
