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: Hello World!!!

/**
 * Copyright nontsu ( http://wonderfl.net/user/nontsu )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/5uXW
 */

// forked from onetruth's forked from: Hello World!!!
// forked from nitoyon's Hello World!!!

package{
    import flash.display.*;
    import flash.text.*;
    import flash.filters.*;
    import flash.geom.*;
    import caurina.transitions.Tweener;


    public class Foo extends Sprite{
        private var bd:BitmapData;
        public function Foo():void{
            var tf:TextField = new TextField();
            tf.textColor = 0x0DC143C;
            tf.text = "(・▽・)(>ω<)(・3・)";
            tf.autoSize = "left";
            bd = new BitmapData(tf.width, tf.height, false, 0xcccccc);
            bd.draw(tf);
       

            for(var i:int = 0; i < bd.width; i++){
                for(var j:int = 0; j < bd.height; j++){
                    Tweener.addTween(
                        randomize(addChild(new Circle(bd.getPixel(i, j)))), 
                        {
                            x: i * 5,
                            y: j * 5,
                            alpha: 50,
                            delay: (i + j) * .1 * Math.random(),
                            time: 5
                                    
                        }
                    );
                }
            }
        }
        private function randomize(d:DisplayObject):DisplayObject{
            d.x = 100 * Math.random() -500;
            d.y = 100 * Math.random() *500;
            d.alpha = 10;
            return d;
            
        }
    }
}


import flash.display.Sprite;

class Circle extends Sprite{
    public function Circle(color:uint):void{
        graphics.beginFill(color);
        graphics.drawRect(0,0,4,4);
        graphics.endFill();
    }

}