1/** 2Script: Slideshow.Flash.js 3 Slideshow.Flash - Flash extension for Slideshow. 4 5License: 6 MIT-style license. 7 8Copyright: 9 Copyright (c) 2008 [Aeron Glemann](http://www.electricprism.com/aeron/). 10 11Dependencies: 12 Slideshow. 13*/ 14 15(function () { 16 Slideshow.Flash = new Class({ 17 Extends: Slideshow, 18 19 options: { 20 color: ['#FFF'], 21 }, 22 23 /** 24 Constructor: initialize 25 Creates an instance of the Slideshow class. 26 27 Arguments: 28 element - (element) The wrapper element. 29 data - (array or object) The images and optional thumbnails, captions and links for the show. 30 options - (object) The options below. 31 32 Syntax: 33 var myShow = new Slideshow.Flash(element, data, options); 34*/ 35 36 initialize: function (el, data, options) { 37 options = options || {}; 38 options.overlap = true; 39 if (options.color) options.color = Array.from(options.color); 40 this.parent(el, data, options); 41 }, 42 43 /** 44 Private method: show 45 Does the slideshow effect. 46*/ 47 48 _show: function (fast) { 49 if (!this.image.retrieve('tween')) 50 $$(this.a, this.b).set('tween', { 51 duration: this.options.duration, 52 link: 'cancel', 53 onStart: this._start.bind(this), 54 onComplete: this._complete.bind(this), 55 property: 'opacity', 56 }); 57 if (fast) this.image.get('tween').cancel().set(1); 58 else { 59 this.el 60 .retrieve('images') 61 .setStyle('background', this.options.color[this.slide % this.options.color.length]); 62 var img = this.counter % 2 ? this.a : this.b; 63 img.get('tween').cancel().set(0); 64 this.image.get('tween').set(0).start(1); 65 } 66 }, 67 }); 68})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.