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

Electricity Effect

...
@author milkmidi
http://milkmidi.blogspot.com
/**
 * Copyright milkmidi ( http://wonderfl.net/user/milkmidi )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/4pes
 */

package  {
	/**
	 * ...
	 * @author milkmidi
		http://milkmidi.blogspot.com
	 */	
	import flash.display.Sprite;	
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.BlendMode;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.filters.DisplacementMapFilter;
	import flash.filters.GlowFilter;
	import flash.filters.DisplacementMapFilterMode;
	import flash.geom.*;
	import flash.utils.setTimeout;
	[SWF(width = "465", height = "465", frameRate = "30", backgroundColor = "#0")]
	public class Elect extends Sprite {			
		private const data:String = "iVBORw0KGgoAAAANSUhEUgAAAT8AAADACAYAAAByFWTTAAAbAElEQVR4nO2d63XjOrKFd8+a/3QG1I1AzoA6Edg3AnkicE8E8kTgngjkE4F9IpBOBHJHQHUE6o7A8wNEE6KBAsAnKO1vLSzZfIAgSG5UFUDwCwiJJwNwC2BlWWdbZuNYpSbvVfoRXyxCwvkydQFI8uQAFlCidlulxQjH/QklgntQEMkAUPxIkzvUVt0tgJtJS3NOUxD/mrQ0hJDZswSwBXAC8DGjdKrKfdd/lRBCLpUlgGcAJaYXsb6E8BXAGiomSQghv8kBPAI4YHqxGjppISSEXDE5lHs4tSBNkUpQBIkFdnhcNjmAJwAPA+W/R90J8V79HcINVGdKkxVUT/Kic8k+c4Sqiz8HyJvMEIrfZVIA+Argvoe8jlV6b/wOOexEjyM0h9asesr7CIogIRdHAWCHflzFZ6hOkZRYQsUsX0F3mBAC5d52Fb1UBU+iQPce6xIcKkPILHlE+/F5cxQ8F3qsYlsRfAWHyBAyC9pae3pg8CUIno0MqkFoYw2eQCuQkKRpY+1dY4yrQL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D5kWS2PGiaeKDffKnObzu0YeUb/q1RQ/s5f2DTMeckBECtTCp3vjY0TW3P+IsLc/CCGEEEIIIYQQQgghhBBCCCGEkET5HyJ2wvPg0OQHAAAAAElFTkSuQmCC"
		
		private var logo_mc:Sprite;
		
		private var glow:GlowFilter = new GlowFilter(0x00ffff, 1, 1, 1, 100, 1, false, true);
		private var glow2:GlowFilter = new GlowFilter(0x00ffff, 0.6, 8, 8, 2, 1, false, false);
		private var glow3:GlowFilter = new GlowFilter(0x6666ff, 0.8, 10, 10, 3, 1, false, false);
		
		private var offset_y:Number = 2;
		private var offset_x:Number = 2;
		private var bounds:Object
		private var w:Number;
		private var h:Number;
		
		private var _sourceBmp		:BitmapData;
		private var _displaceBmp	:BitmapData;		
		private var _perlinNoiseBmp	:BitmapData;
			
		private var _offsetArray:Array = [new Point(), new Point()];
		private var _displacementFilter:DisplacementMapFilter;
		public function Elect() {
			
			logo_mc = new Sprite();
			logo_mc.addChild( Base64ImageLoader.load(data)  );			
			setTimeout( _timeout , 100 );			
		}		
		
		private function _timeout():void {
			logo_mc.x = (465 -logo_mc.width) >> 1;
			logo_mc.y = (465 -logo_mc.height) >> 1;
			addChild(logo_mc);
			bounds = logo_mc.getBounds(logo_mc);
			w = bounds.width + offset_x;
			h = bounds.height + offset_y;
			_sourceBmp = new BitmapData(w, h, true, 0);
			_displaceBmp = new BitmapData(w, h, true, 0);		
			_perlinNoiseBmp = new BitmapData(w, h);
			
			var bitmap:Bitmap = new Bitmap(_displaceBmp);
			bounds.x -= offset_x / 2;
			bounds.y -= offset_y / 2;
			_sourceBmp.draw(logo_mc, new Matrix(1, 0, 0, 1, bounds.x * -1, bounds.y * -1));
			
			this.addChild(bitmap)
			bitmap.x = logo_mc.x + bounds.x;
			bitmap.y = logo_mc.y + bounds.y;
			
			_displacementFilter = new DisplacementMapFilter(_perlinNoiseBmp, new Point(), 1, 1, 25, 25,DisplacementMapFilterMode.COLOR);
		
			logo_mc.filters = [glow2];
			bitmap.blendMode = BlendMode.SCREEN;
			bitmap.filters = [glow2, glow3];
			this.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
		}
		private function enterFrameHandler(e:Event):void {			
			_offsetArray[0].x -= 2;
			_offsetArray[1].x -= 1;
			_perlinNoiseBmp.perlinNoise(10, 20, 3, 64, true, true, 1, true, _offsetArray);
			_displaceBmp.applyFilter(_sourceBmp, _sourceBmp.rect,new Point(), glow);
			_displaceBmp.applyFilter(_displaceBmp, _sourceBmp.rect, new Point(), _displacementFilter);
		}
	}
	
}


import flash.display.Loader;
import flash.utils.ByteArray;
import mx.utils.Base64Decoder;
class Base64ImageLoader {    
    public static function load(pData:String):Loader {
        var _byteArray:ByteArray;
        var _base64Decoder:Base64Decoder = new Base64Decoder();
        var _loader:Loader;                
        _base64Decoder.decode(pData);        
        try {
            _byteArray = _base64Decoder.toByteArray();
            _byteArray.position = 0;
        } catch (e:Error) {
            return null;
        }
        
        _loader = new Loader();
        _loader.loadBytes(_byteArray);
        
        return _loader;
    }
}