Ignore:
Timestamp:
08/12/08 05:04:55 (5 years ago)
Author:
jeroen
Message:

added 3.17 rotator and :void returns to as3 functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/as3/com/jeroenwijering/player/SWFLoader.as

    r52 r57  
    3535        * @param ply    The player instance. 
    3636        **/ 
    37         public function SWFLoader(ply:MovieClip) { 
     37        public function SWFLoader(ply:MovieClip):void { 
    3838                player = ply; 
    3939                amount = 0; 
     
    4646        * @prm pgi              A commaseparated list with plugins.  
    4747        **/ 
    48         public function loadPlugins(pgi:String=null) { 
     48        public function loadPlugins(pgi:String=null):void { 
    4949                if(pgi) { 
    5050                        var arr = pgi.split(','); 
     
    6262        * @param cfg    Object that contains all configuration parameters. 
    6363        **/ 
    64         public function loadSkin(skn:String=null) { 
     64        public function loadSkin(skn:String=null):void { 
    6565                if(skn) { 
    6666                        loadSWF(skn,true); 
     
    7373 
    7474        /** Load a particular SWF file. **/ 
    75         public function loadSWF(str:String,skn:Boolean) { 
     75        public function loadSWF(str:String,skn:Boolean):void { 
    7676                if(str.substr(-4) != '.swf') { str += '.swf'; } 
    7777                var ldr = new Loader(); 
     
    9898 
    9999        /** SWF loading failed; use default skin. **/ 
    100         private function pluginError(evt:IOErrorEvent) { 
     100        private function pluginError(evt:IOErrorEvent):void { 
    101101                amount--; 
    102102                if (amount == 0) { 
     
    107107 
    108108        /** Plugin loading completed; add to stage and populate. **/ 
    109         private function pluginHandler(evt:Event) { 
     109        private function pluginHandler(evt:Event):void { 
    110110                var clp = evt.target.content; 
    111111                player.addPlugin(clp); 
     
    118118 
    119119        /** SWF loading failed; use default skin. **/ 
    120         private function skinError(evt:IOErrorEvent=null) { 
     120        private function skinError(evt:IOErrorEvent=null):void { 
    121121                skin = player['player']; 
    122122                dispatchEvent(new Event(Event.INIT)); 
     
    125125 
    126126        /** Skin loading completed; add to stage and populate. **/ 
    127         private function skinHandler(evt:Event) { 
     127        private function skinHandler(evt:Event):void { 
    128128                var clp = evt.target.content; 
    129129                if(clp['player']) { 
Note: See TracChangeset for help on using the changeset viewer.