Slideshow.as

From Organic Design wiki
(Redirected from Katihe-slideshow.as)

<swf width="800" height="600" fps="50" caption="Click to download" bgcolor="#000000" ver="7"> class SlideShow { static var app : SlideShow; function SlideShow() {

_root.images = [ '/files/e/ec/Sword-nadbot.jpg', '/files/0/0f/Fist.jpg', '/files/4/46/ATT1789367.jpg', '/files/7/7f/Firebreather3.jpg', '/files/a/ad/Zenovia-kungfu.JPG', '/files/b/ba/Udegawa.jpg', '/files/c/ca/Liz-blender-nurse.png', '/files/6/67/Fireworks.jpg', '/files/2/29/Nodal-potential.jpg', '/files/f/f5/Nodal-reduction.jpg', '/files/6/61/Wikcers_world.jpg', '/files/0/05/Kitty6.jpg', '/files/f/fa/Dont-tread-on-me.jpg', '/files/4/42/Meeting1.jpg', '/files/5/56/Our_docs.png', '/files/c/cf/Peerix-with-toolbox.jpg', '/files/4/40/Foo2.gif', '/files/9/90/Male-bald.png', '/files/5/53/Sweave_diagram.png', '/files/8/82/Jane-Avril.gif', '/files/a/ac/Pipi.gif', '/files/3/3c/Salamon.gif', '/files/thumb/f/f2/Lion.svg/242px-Lion.svg.png', '/files/1/1c/Maslow_Hierarchy_of_Needs.gif', '/files/f/fc/EApprox.png', '/files/5/5c/Blender-nurse-original.jpg', '/files/5/55/WinBond_w49f002up12b.png', '/files/1/12/Lcd-playing.jpg', '/files/6/64/Power-supply.gif', '/files/0/0b/Hackeysacks.png', '/files/8/82/Spherical-topology.jpg', '/files/2/24/Shou_kua_fig2.gif', '/files/c/c9/Recursive-rectangles.png', '/files/9/9c/System-architecture.png', '/files/2/23/SWF_e-book.png', '/files/5/5a/Nodal-loop-example1.png' ];

// Dynamics (called each frame) _root.top = 1000; _root.cur = 0; _root.last = -1; _root.fade = 3.125; _root.delay = 400; _root.ctr = 0; _root.f = 0; _root.onEnterFrame = function() { _root.f++; _root.ctr += _root.fade; var image = _root.images[_root.cur]; if (_root.ctr < 100) { var a = _root.ctr; image._alpha = a; if (!image._visible) image._visible = true; if (_root.last >= 0) _root.images[_root.last]._alpha = 100-a; } else { image._alpha = 100; _root.images[_root.last]._visible = false; } if (_root.ctr > _root.delay) { var done; var c = _root.cur; _root.last = c; var bail = _root.images.length; do { if (++c >= _root.images.length) c = 0; image = _root.images[c]; done = (typeof(image) == "movieclip" && image.getBytesLoaded() == image.getBytesTotal()); } while (!done && bail--); _root.cur = c; _root.ctr = 0; if (image._x == 0) { image._x = (_root.w-image._width)/2; image._y = (_root.h-image._height)/2; } image.swapDepths(_root.top); } };

_root.createTextField('txt', 10000, 0, 0, _root.w, _root.h); with (_root.txt) { autosize = 'left'; selectable = false; border = false; multiline = true; wordWrap = false; textColor = 0x0000ff; }

// Load all slides for (var i = 0; i < _root.images.length; i++) { _root.createEmptyMovieClip('swf'+i,_root.top-i); var swf = _root['swf'+i]; swf.loadMovie(_root.images[i]); swf._alpha = 0; _root.images[i] = swf; var j = _root.f; for (;swf.getBytesLoaded() != swf.getBytesTotal();); _root.txt.text = "image: "+i+" loaded\n"; }

}

// entry point static function main(mc) { _root.w = Stage.width; _root.h = Stage.height; app = new SlideShow(); } } </swf>