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

Mist

見ろ!まるで霧のようだ!
ってムスカ大佐が言ってた。
Get Adobe Flash player
by Susisu 03 May 2011
package {
    import flash.filters.BlurFilter;
    import flash.geom.Point;
    import flash.events.Event;
    import flash.display.Shape;
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.display.Sprite;
    [SWF(width="512",height="512",frameRate="60",backgroundColor="0x000000")]
    public class FlashTest extends Sprite {
        private var bmd:BitmapData;
        private var bmp:Bitmap;
        private var bf:BlurFilter;
        private var ds:Shape;
        public function FlashTest() {
            bmd=new BitmapData(512,512,true,0);
            bmp=new Bitmap(bmd);
            addChild(bmp);
            ds=new Shape();
            bf=new BlurFilter(4,4,2);
            
            addEventListener(Event.ENTER_FRAME,onEnterFrame);
        }

        private function onEnterFrame(e:Event):void{
            ds.graphics.clear();
            ds.graphics.lineStyle(64,0xffffff,0.02);
            ds.graphics.moveTo(0,256);
            ds.graphics.curveTo(Math.random()*512>>0,Math.random()*512>>0,512,256);
            bmd.draw(ds);
            bmd.applyFilter(bmd,bmd.rect,new Point(),bf);
        }
    }
}