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 (again!) from: Hello World!!! ... just parameter tweaks

making it darker in outlook ...
no real coding alterations, just screwing with the parameters
but i do think I've come up with quite a nice effect
with these particular settings --- DM
(now i wanna figure how to replicate the main loop so it will
display multiple pages of text... and change the font)
Edit: yeah. i have NO idea on either of those :(
Get Adobe Flash player
by dangerousmark 05 Mar 2009
// forked from nitoyon's Hello World!!!
// making it darker in outlook ...
// no real coding alterations, just screwing with the parameters
// but i do think I've come up with quite a nice effect
// with these particular settings --- DM
// (now i wanna figure how to replicate the main loop so it will
// display multiple pages of text... and change the font)
// Edit: yeah. i have NO idea on either of those :(
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 = 0xDDEEFF;
            tf.text = "GOODBYE\nCRUEL\nWORLD...";
            tf.autoSize = "left";
            bd = new BitmapData(tf.width, tf.height, false, 0x882200);
            bd.draw(tf);
            bd.applyFilter(bd, bd.rect, new Point(), new BlurFilter());
            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 * 7,
                            y: j * 9,
                            alpha: 0.88,
                            delay: (i + j) * 0.06 * Math.random(),
                            time: 7.5
                        }
                    );
                }
            }    
        }
        private function randomize(d:DisplayObject):DisplayObject{
            d.x = 200 + (20 * Math.random());
            d.y = 200 + (20 * Math.random());
            d.alpha = 0;
            return d;
        }
    }
}


import flash.display.Sprite;

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