In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

反転

any key press evokes the file dialog
and you can change the image used in this program	

...
@author 9re
Get Adobe Flash player
by 9re 13 Jun 2009
/**
 * Copyright 9re ( http://wonderfl.net/user/9re )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/kzeT
 */

package 
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.KeyboardEvent;
	import flash.events.MouseEvent;
	import flash.filters.BlurFilter;
	import flash.geom.Matrix;
	import flash.net.FileFilter;
	import flash.net.FileReference;
	import flash.geom.Point;
	import flash.utils.ByteArray;
	
    // any key press evokes the file dialog
    // and you can change the image used in this program	

	import mx.utils.Base64Decoder;
	/**
	 * ...
	 * @author 9re
	 */
	[SWF(backgroundColor="#000000", frameRate=31, width="465", height="465")]
	public class Main extends Sprite 
	{
		public var fr:FileReference;
		private var _scale:Number = 12.0;
		private var _s:Number = 90;
		private var _particles:Vector.<Particle>;
		private var _w:int;
		private var _h:int;
		private var _cw:int;
		private var _ch:int;
		private var _display:BitmapData;
		private var _down:Boolean = false;
		
		public function Main():void 
		{
			var decoder:Base64Decoder = new Base64Decoder();
			decoder.decode(_base64Str);
			_base64Str = "";
			
			var bytes:ByteArray = decoder.toByteArray();
			decoder = null;
			
			var loader:Loader = new Loader();
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
			loader.loadBytes(bytes);
		
			_cw = stage.stageWidth >> 1;
			_ch = stage.stageHeight >> 1;
		}
		
		private function completeHandler(e:Event):void 
		{
			e.target.removeEventListener(Event.COMPLETE, completeHandler);
			
			var loader:Loader = e.target.loader as Loader;
			
			
			_display = new BitmapData(stage.stageWidth, stage.stageHeight, false, 0xff000000);
			addChild(new Bitmap(_display));
			
			_w = loader.width;
			_h = loader.height;
			
			var bd:BitmapData = new BitmapData(_w, _h);
			bd.draw(loader);
			_particles = new Vector.<Particle>();
			var i:int, j:int;
			
			for (j = 0; j < _h; ++j) {
				for (i = 0; i < _w; ++i) {
					_particles.push(new Particle(i - (_w >> 1), j - (_h >> 1), bd.getPixel(i, j)));
				}
			}
			
			addEventListener(Event.ENTER_FRAME, draw);
			stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
			stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
			stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
			
			loader.unload();
		}
		
		private function keyDownHandler(e:KeyboardEvent):void 
		{
			fr = new FileReference();
			fr.browse([new FileFilter("Image(*.jpg, *.jpeg, *.png)", "*.jpg;*.jpeg;*.png;")]);
			fr.addEventListener(Event.SELECT, onSelect);
		}
		
		private function onSelect(e:Event):void 
		{
			fr.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
			fr.load();
		}
		
		private function onComplete(e:Event):void 
		{
			var loader:Loader = new Loader();
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imagLoaded);
			loader.loadBytes(fr.data);
			
		}
		
		private function imagLoaded(e:Event):void 
		{
			e.target.removeEventListener(Event.COMPLETE, imagLoaded);
			
			var loader:Loader = e.target.loader as Loader;
			var scale:Number = Math.min(1.0, 90 / loader.width, 90 / loader.height);
			var mat:Matrix = new Matrix();
			mat.scale(scale, scale);
			var bd:BitmapData = new BitmapData(loader.width * scale, loader.height * scale);
			bd.draw(loader, mat, null, null, null, true);
			
			
			_particles = new Vector.<Particle>();
			var i:int, j:int;
			
			for (j = 0; j < _h; ++j) {
				for (i = 0; i < _w; ++i) {
					_particles.push(new Particle(i - (_w >> 1), j - (_h >> 1), bd.getPixel(i, j)));
				}
			}
		}
		
		private function mouseDownHandler(e:MouseEvent):void 
		{
			_down = true;
		}
		
		private function mouseUpHandler(e:MouseEvent):void 
		{
			_down = false;
		}
		
		private function draw(e:Event):void 
		{
			_display.lock();
			_display.applyFilter(_display, _display.rect, new Point(), new BlurFilter());
			var len:int = _particles.length;
			var i:int = len;
			var p:Particle;
			var q:Point = new Point();
			while (i--) {
				p = _particles[i];
				convert(p.x, p.y, q);
				_display.setPixel(q.x, q.y, p.color);
			}
			
			
			_display.unlock();
		}
		
		private function convert($x:Number, $y:Number, $result:Point):void {
			var dx:Number = $x / _s;
			var dy:Number = $y / _s;
			var mx:Number = (mouseX - _cw) / _s;
			var my:Number = -(mouseY - _ch) / _s;
			var r:Number;
			var t:Number;
			
			dx -= mx;
			dy -= my;
			
			r = dx * dx + dy * dy;
			dx /= r;
			dy /= -r;
			
			dx += mx;
			dy += my;
			
			$result.x = _cw + dx * _s;
			$result.y = _ch + dy * _s;
		}
		
		
		// base 64 data
		private var _base64Str:String = "iVBORw0KGgoAAAANSUhEUgAAAGMAAABjCAYAAACPO76VAAAnp0lEQVR42s3dBaxsS9Wu4YO7u7u7u7u7u7u7uzsEDxA8WEJwCRLc3d0J7i7932eSt+9YvdfeZ9uB00mle/XqWbNqfMNrVM0Djna0o62OcpSjrI50pCMt70c96lFXRzziEdftCEc4wvLdCU5wgtUJT3jC1YlPfOLVcY5znNUxj3nM1UlOcpLVBS5wgdU1r3nN1Q1ucIPVDW94w9WNb3zj5f2Upzzl6jCHOczq8Ic//Lod9rCHXZ3qVKdaXeYyl1ld6lKXWl3ykpdcXexiF1td5CIXWV3wghdcnec851md61znWp35zGdeHeMYx1iud41xGJ8+fHfoQx96eZ/N7+b/a/Nvnw91qENt28fhDne45T7meuxjH3t1ohOdaHWKU5xidaYznWl1lrOcZXXuc597GeP5z3/+Zc4XutCFVuc973mX772f/exnX53hDGdYnfrUp16uO9axjrU67nGPuzr+8Y+/0Apt9e8+mvFqPhu39wOAceQjH3mZrIH0GQgNTqeaG/j7eMc73jKoa13rWqsb3ehGq5vc5CbLOyA0fyNoYHRDfwPw0pe+9Oqyl73sAsglLnGJBYwLX/jCS58md85znnMhBoLNgRuTvzeBmATdBKMGhM3v/D5mMzfzOulJT7oQFG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UpNVRXRA2sDw+cqL7i7Uhk9ULe1ip7LgSN76jBwBHdsBXVVBJ69aAWQ7x8Xd5RE56H3jNfqrvQd8dqOnOfVMU1sRrupKtcBRo/kof4AXY1XTyM42IDBaM+Mq1Yw1cQ0k+4UGoAgqnWKdqaWRtdMkgQFBCkiKRlu0TfCVYafe9tqXQtbgZFkZHgLEHtiZSd1UlM9jy+Ja42mB6yzRfOJxwcbMHqIe3mlAOmkmgqg22hSkQFAeupYi1AzP+UanM+u9ABbQHBn9dHD4Wd63D06gbNjWqea6j7tfEXYgj5j018nJczHSbi2bK1rOBeBdbACo4cqtn7d0mlPDp4ijwN7pgTOzs0tFqgwIQD9jirr8ZxUUycl4GB6HICttOHWngs+j7CbYEw11fM5AGJswJjnnmfAe0RpD1fv1NGq7APjf5oO6Wi8DHBAFC9QF3lTuAxntXQKDBzOdlS9UXDYVmREb+tXT7MEUA++RZhZhtnzZ7tnUXKFZYGRmur0tcCoxGh6Z2V3i7zNafMAyb04AHL/g8FWmPhsrUsU8SYZwKAOOiGHCmI/qB0TjEAt0/bYtQ5+B55iZ94O/Y54FafNQ3wRrlzYjJLbL953rQoCorMJC+xm3NLJnkXejHeub6megwUY6dOkIRWj4R5gtAKmmXQLQ+xGkmGSm6d4IqCKkp7t2uGNgq/WKTrxJuNdnihpzQAX+0zJiMitYXQCm34362xJG3VmPgWOjREY+2nf3r6BUZ0QgrcOkVdUFF1FdmcWAqFHA3UCAmK0UteZIyZJf7fHGhAt7lB3reBtgpGqm+eyd37HNOD0fM/JaC2D6usRCxOMDgf2nj2aG3z+52AYQAtCc7m070y8NEcGnM4lGTgeGB3oTk8HRsD5jPBVEs615yQjzp+PgGtjYwFfuSXgaKXQczyMqcdOA3sWGQRIS7M9eq6A8L8Fxv8BjhyLQZSrO6MAAAAASUVORK5CYII=";		
	}
	
}

class Particle {
	public var x:Number;
	public var y:Number;
	public var color:uint;
	
	public function Particle($x:Number, $y:Number, $color:uint):void {
		x = $x;
		y = $y;
		color = $color;
	}
}