Show
Ignore:
Timestamp:
06/06/08 00:38:39 (18 months ago)
Author:
jeroen
Message:

added js initer BUT destroyed controlbar display

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/as3/com/jeroenwijering/utils/Skinner.as

    r2 r3  
    1616 
    1717 
    18         /** Reference to the stage graphics **/ 
     18        /** Reference to the stage graphics. **/ 
    1919        public var skin:MovieClip; 
    2020        /** SWF skin loader reference **/ 
    2121        private var loader:Loader; 
     22        /** Reference to the player itself. **/ 
     23        private var player:MovieClip; 
    2224        /** Skinnable elements **/ 
    2325        private var ELEMENTS:Array = new Array("controlbar","display","playlist"); 
     
    2931        * @param skn    The MovieClip that contains the display, playlist and controlbar. 
    3032        **/ 
    31         public function Skinner(skn:MovieClip) { 
    32                 skin = skn; 
     33        public function Skinner(ply:MovieClip) { 
     34                player = ply; 
    3335        }; 
    3436 
     
    5052                        } 
    5153                } else { 
     54                        skin = player['player']; 
    5255                        dispatchEvent(new Event(Event.COMPLETE)); 
    5356                } 
     
    6467        private function loaderHandler(evt:Event) { 
    6568                var cnt = MovieClip(loader.content); 
     69                /* 
    6670                for(var i=0; i<cnt.numChildren; i++) { 
    6771                        var ncd = cnt.getChildAt(i); 
     
    7377                        } 
    7478                } 
     79                */ 
    7580                dispatchEvent(new Event(Event.COMPLETE)); 
    7681        };