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

Get Adobe Flash player
by Dochy 16 Jul 2009
// 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;
        private var pxls:Array = [];
        private var i:int;
        private var j:int;
        private var p:Point;
        
        public function Foo():void{
            
            var tf:TextField = new TextField();
            tf.textColor = 0x2e3a33;
            tf.text = "OLDSCHOOL\nGAMEBOY TEXT EFFECT\nON THE PLANET\nI LIKE THIS SHIT...\n\nYES I DO";
            tf.autoSize = "left";
            
            bd = new BitmapData(tf.width, tf.height, false, 0xFFFFFF);
            bd.draw(tf);
            
            
            bd.applyFilter(bd, bd.rect, new Point(), new BlurFilter());
            bd.draw(tf);
            
            
            for( i = 0; i < bd.width; i++){
               
                var newX:int = i*2;
               
                for( j = 0; j < bd.height; j++){
                    
                    var newY:int = j*2;
                    
                    Tweener.addTween(
                        randomize(addChild(new Circle(bd.getPixel(i, j)))), 
                        {
                            x: newX,
                            y: newY,
                            alpha: 1,
                            delay: ((i + j) * .2 * Math.random())*.5,
                            time: 1
                        }
                    );
                }
            }
        }
        
        
        private function randomize(d:DisplayObject):DisplayObject {
            d.x = 0;
            d.y = 0;
            d.alpha = 0;
            return d;
        }
    }
}


import flash.display.Sprite;

class Circle extends Sprite{
    public function Circle(color:uint):void{
        if( color != 0xFFFFFF) {
            graphics.beginFill(color);
            graphics.drawCircle(0, 0, 1);
            graphics.endFill();
        }
    }
}