Changeset 331


Ignore:
Timestamp:
09/07/09 10:37:21 (4 years ago)
Author:
jeroen
Message:

added the oncomplete flashvar, fixed repositioning of watermark and fixed infobox fullscreen display if it is set to top

Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • plugins/infobox/com/jeroenwijering/plugins/InfoBox.as

    r314 r331  
    105105                back.width = view.config['width']; 
    106106                if(config['width']) { 
     107                        visible = config['visible']; 
    107108                        x = config['x']; 
    108                         y = config['y']; 
     109                        y = config['y'] + config['height'] - config['size']; 
    109110                        back.width = config['width']; 
    110111                        back.height = config['size']; 
  • testing/index.html

    r300 r331  
    420420                <label>mute</label> 
    421421                <input type="text" name="mute" /> 
     422                <label>oncomplete</label> 
     423                <input type="text" name="oncomplete" /> 
    422424                <label>repeat</label> 
    423425                <input type="text" name="repeat" /> 
  • trunk/as3/com/jeroenwijering/player/Controller.as

    r243 r331  
    181181 
    182182        /** Jump to the link of a playlistitem. **/ 
    183         private function linkHandler(evt:ViewEvent):void { 
     183        private function linkHandler(evt:ViewEvent=null):void { 
    184184                var itm:Number = config['item']; 
    185                 if(evt.data.index) { itm = evt.data.index; } 
     185                if(evt && evt.data.index) { itm = evt.data.index; } 
    186186                var lnk:String = playlist[itm]['link']; 
    187187                if(lnk != null) { 
     
    415415        private function stateHandler(evt:ModelEvent):void { 
    416416                if(evt.data.newstate == ModelStates.COMPLETED) { 
     417                        if(config['oncomplete'] == 'link') {  
     418                                linkHandler(); 
     419                        } 
    417420                        switch (config['repeat']) { 
    418421                                case 'single': 
  • trunk/as3/com/jeroenwijering/player/Model.as

    r300 r331  
    182182                                        sendEvent(ModelEvent.LOADED,{loaded:0,offset:0,total:0}); 
    183183                                case ModelStates.COMPLETED: 
    184                                         thumb.visible = true; 
    185                                         display.media.visible = false; 
    186                                         sendEvent(ModelEvent.TIME,{position:item['start'],duration:item['duration']}); 
     184                                        if(config['oncomplete'] != 'none') { 
     185                                                thumb.visible = true; 
     186                                                display.media.visible = false; 
     187                                                sendEvent(ModelEvent.TIME,{position:item['start'],duration:item['duration']}); 
     188                                        } 
    187189                                        break; 
    188190                                case ModelStates.PLAYING: 
  • trunk/as3/com/jeroenwijering/player/Player.as

    r300 r331  
    5555                logo:undefined, 
    5656                mute:false, 
     57                oncomplete:'rewind', 
    5758                repeat:'none', 
    5859                resizing:true, 
  • trunk/as3/com/jeroenwijering/plugins/Watermark.as

    r211 r331  
    1919 
    2020        /** Configuration vars for this plugin. **/ 
    21         private var config:Object = {}; 
     21        public var config:Object = {}; 
    2222        /** Reference to the skin MC. **/ 
    2323        public var clip:MovieClip; 
     
    6969 
    7070        private function resizeHandler(evt:ControllerEvent):void { 
    71                 config = view.getPluginConfig(this); 
    72                 x = config['x'] + 10; 
    73                 y = config['height'] - height - 12; 
     71                clip.x = config['x'] + 10; 
     72                clip.y = config['y'] + config['height'] - clip.height - 12; 
    7473        }; 
    7574 
Note: See TracChangeset for help on using the changeset viewer.