Changeset 384


Ignore:
Timestamp:
09/24/09 15:07:45 (4 years ago)
Author:
jeroen
Message:

captions are now also reset when bogus captions are in the item

Location:
plugins/captions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/captions/com/jeroenwijering/plugins/Captions.as

    r383 r384  
    139139        private function itemHandler(evt:ControllerEvent=null):void { 
    140140                current = 0; 
     141                captions = new Array(); 
     142                config['file'] = undefined; 
     143                field.htmlText = ''; 
    141144                var file:String; 
    142145                if (view.playlist[view.config['item']]['captions.file']){ 
     
    156159                                Logger.log(err.message,'captions'); 
    157160                        } 
    158                 } else {  
    159                         captions = undefined; 
    160                         config['file'] = undefined; 
    161                         field.htmlText = ''; 
    162161                } 
    163162        }; 
     
    167166        private function loaderHandler(evt:Event):void { 
    168167                var ext:String = config['file'].substr(-3); 
    169                 captions = new Array(); 
    170168                if(ext == 'srt' || ext == 'txt') { 
    171169                        captions = SRTParser.parseCaptions(String(evt.target.data)); 
Note: See TracChangeset for help on using the changeset viewer.