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

forked from: forked from: flash on 2009-7-24

Get Adobe Flash player
by blings 24 Jul 2009
/**
 * Copyright blings ( http://wonderfl.net/user/blings )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/bR6Z
 */

// forked from blings's forked from: flash on 2009-7-24
// forked from blings's flash on 2009-7-24
package {
    import flash.display.*;
    import flash.events.Event;
    import flash.filters.*;
    import flash.geom.*;
    [SWF(backgroundColor=0x0, frameRate=30)]
    public class FlashTest extends Sprite {
        private var cont:Sprite=new Sprite;
        private var bitmap:Bitmap;
        private var data:BitmapData=new BitmapData(400, 400, true, 0);
        public function FlashTest() {
            addChild(cont);
            addEventListener(Event.ENTER_FRAME, onFrame);
            bitmap=new Bitmap(data);
            addChild(bitmap);
        }
        private function onFrame(e:Event):void {
            var temp:Sprite=new Sprite();
            var mat:Matrix=new Matrix();
            mat.translate(10, 0);
            temp.graphics.beginFill(Math.random()*0xFFFFFF);
            temp.graphics.drawCircle(0,0, 20);
            temp.graphics.endFill();
            temp.x=Math.random()*400;
            temp.y=Math.random()*400;
            cont.addChild(temp);
            data.draw(cont);
            data.applyFilter(data, new Rectangle(0,0, 500, 500), new Point(0,0), new BlurFilter(5,5));
            new Rectangle(0,0, 500, 500)
        }
    }
}