Show
Ignore:
Timestamp:
06/07/08 07:17:23 (18 months ago)
Author:
jeroen
Message:

fixed media display, rollovers and sliders

Files:
1 modified

Legend:

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

    r3 r5  
    5353        /** Item change: switch the curently active model if there's a new URL **/ 
    5454        private function itemHandler(evt:ControllerEvent) { 
    55                 // skin.display.media.visible = false; 
     55                skin.display.media.visible = false; 
    5656                if(current) { current.stop(); } 
    5757                sendEvent(ModelEvent.STATE,{newstate:ModelStates.IDLE}); 
     
    8181                } 
    8282                if(playlist[evt.data.index]['image']) { 
    83                         // skin.display.thumb.visible = true; 
     83                        skin.display.thumb.visible = true; 
    8484                        loader.load(new URLRequest(playlist[evt.data.index]['image'])); 
    8585                } else { 
    86                         // skin.display.thumb.visible = false; 
     86                        skin.display.thumb.visible = false; 
    8787                } 
    8888        }; 
     
    9191        /** Place a loaded thumb on stage. **/ 
    9292        private function thumbHandler(evt:Event) { 
    93                 /* 
    9493                var obj = skin.display.thumb; 
    9594                Draw.clear(obj); 
     
    9796                Bitmap(loader.content).smoothing = config['quality']; 
    9897                Stretcher.stretch(obj,config['width'],config['height'],config['stretching']); 
    99                 */ 
    10098        }; 
    10199 
     
    103101        /** Place a loaded mediafile on stage **/ 
    104102        public function mediaHandler(chd:DisplayObject) { 
    105                 /* 
    106103                var obj = skin.display.media; 
    107104                Draw.clear(obj); 
     
    110107                skin.display.thumb.visible = false; 
    111108                skin.display.media.visible = true; 
    112                 */ 
    113109        }; 
    114110 
     
    148144        /** Resize the media and thumb. **/ 
    149145        private function resizeHandler(evt:ControllerEvent) { 
    150                 /* 
    151146                Stretcher.stretch(skin.display.thumb,evt.data.width,evt.data.height,config['stretching']); 
    152147                Stretcher.stretch(skin.display.media,evt.data.width,evt.data.height,config['stretching']); 
    153                 */ 
    154148        }; 
    155149