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: sketch_08121802

[SWF(width="465", height="465", backgroundColor="0x000000", frameRate="30")]
Get Adobe Flash player
by uranodai 18 Dec 2008
// forked from kojimajunya's sketch_08121802
// write as3 code here..
package{

    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.display.Shape;
    import flash.events.Event;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.geom.ColorTransform;
    import flash.geom.Rectangle;

    //[SWF(width="465", height="465", backgroundColor="0x000000", frameRate="30")]
	
    public class Main extends MovieClip{

	private var container:Sprite;
        private var drawBox:Sprite;
        private var bmp:Bitmap;
        private var bmd:BitmapData;
        private var tonedown:ColorTransform;
        private var rect:Rectangle;


        public function Main(){

            bmd = new BitmapData(465, 465, true, 0xFFFFFFFF);
            bmp = new Bitmap(bmd);
            tonedown = new ColorTransform(2.2, 1.8, 1.7, 0.8);
            rect = new Rectangle(0, 0, 465, 465);

            drawBox = new Sprite();
            container = new Sprite();
            for(var i:int = 0; i < 30; i++){
                var tf:TextField = new TextField();
                tf.textColor = 0x110101;
                tf.autoSize = TextFieldAutoSize.LEFT;
                tf.text = "ふぁっきんらいと";
                tf.y = -300 + (600 / 29 * i);
                tf.scaleX = tf.scaleY = 2;
                tf.rotationY = i * (360 / 30);
                container.addChild(tf);
            }

            container.x = 465 / 2;
            container.y = 465 / 2;

            drawBox.addChild(container);
            addChild(bmp);
            addChild(drawBox);
            addEventListener(Event.ENTER_FRAME, update);
        }

        private function update(e:Event = null):void{
            container.rotationY += 4;
            container.rotationZ += 1;
            bmd.colorTransform(rect, tonedown);
            bmd.draw(drawBox);
        }
    }
}