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

flash on 2011-6-9

もはや意味分からん
Get Adobe Flash player
by Susisu 09 Jun 2011
    Embed
package {
    import flash.events.Event;
    import flash.display.Graphics;
    import flash.filters.BlurFilter;
    import flash.text.TextFormat;
    import flash.text.TextField;
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.display.Sprite;
    [SWF(frameRate="60")]
    public class FlashTest extends Sprite {
        private var bg:Sprite;
        private var c:int=255;
        public function FlashTest() {
            bg=new Sprite();
            var g:Graphics=bg.graphics;
            g.beginFill((c<<16)|(c<<8)|c);
            g.drawRect(0,0,465,465);
            g.endFill();
            addChild(bg);
            var t:Sprite=new Sprite();
            var bmd:BitmapData=new BitmapData(465,465,true,0);
            var bmp:Bitmap=new Bitmap(bmd);
            addChild(bmp);
            var tf:TextField=new TextField();
            tf.width=465;
            tf.height=465;
            var format:TextFormat=new TextFormat("_ゴシック",36,0xffffff,true,false,false,null,null,"center");
            format.letterSpacing=8;
            tf.defaultTextFormat=format;
            tf.htmlText="神社の裏の腐った林檎\n<p align='right'><font size='20' color='#30ffff'>last stage</font></p>";
            tf.y=200;
            t.addChild(tf);
            var bf:BlurFilter=new BlurFilter(2,2);
            t.filters=[bf];
            bmd.draw(t);
            bmd.draw(t);
            
            tf.textColor=0x303030;
            bf=new BlurFilter(3,3);
            t.filters=[bf];
            bmd.draw(t);
            
            tf.x+=2;
            tf.y+=2;
            tf.alpha=0.5;
            bmd.draw(t);
            
            addEventListener(Event.ENTER_FRAME,enterFrameHandler);
        }
        private function enterFrameHandler(e:Event):void{
            if(c>0)c-=4;
            if(c<0)c=0;
            var g:Graphics=bg.graphics;
            g.clear();
            g.beginFill((c<<16)|(c<<8)|c);
            g.drawRect(0,0,465,465);
            g.endFill();
        }

    }
}