Changeset 384
- Timestamp:
- 09/24/09 15:07:45 (4 years ago)
- Location:
- plugins/captions
- Files:
-
- 2 edited
-
captions.swf (modified) (previous)
-
com/jeroenwijering/plugins/Captions.as (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/captions/com/jeroenwijering/plugins/Captions.as
r383 r384 139 139 private function itemHandler(evt:ControllerEvent=null):void { 140 140 current = 0; 141 captions = new Array(); 142 config['file'] = undefined; 143 field.htmlText = ''; 141 144 var file:String; 142 145 if (view.playlist[view.config['item']]['captions.file']){ … … 156 159 Logger.log(err.message,'captions'); 157 160 } 158 } else {159 captions = undefined;160 config['file'] = undefined;161 field.htmlText = '';162 161 } 163 162 }; … … 167 166 private function loaderHandler(evt:Event):void { 168 167 var ext:String = config['file'].substr(-3); 169 captions = new Array();170 168 if(ext == 'srt' || ext == 'txt') { 171 169 captions = SRTParser.parseCaptions(String(evt.target.data));
Note: See TracChangeset
for help on using the changeset viewer.
