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: flash on 2010-10-20

Get Adobe Flash player
by tonohimenana 27 Oct 2010
    Embed
/**
 * Copyright tonohimenana ( http://wonderfl.net/user/tonohimenana )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/4KLb
 */

// forked from tonohimenana's flash on 2010-10-20
package {
        import flash.display.Sprite;
        import flash.display.Shape;

        public class DrawTest extends Sprite {
                public function DrawTest() {
                    
                    
                    var width:int=this.stage.stageWidth;
                    var height:int =this.stage.stageHeight;
                    var shape:Shape=new Shape();
                    for(var i:int =0;i<1000;i++){
                        var color:Number=RGBColor(255,Math.random()*256, 128+Math.random()*128);
                        
                        shape.graphics.lineStyle(3,color);
                        shape.graphics.moveTo(0+i,0);
                        shape.graphics.lineTo(0+i,200);
                    }
                    addChild(shape);
                    }
                   public function RGBColor (r:Number,g:Number,b:Number):int{
                       return(Math.round(r)<<16)+(Math.round(g) <<8)+Math.round(b);
                       
                }
                    
        
        }
        
}