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

Hot sun

author 夏天的树人
Get Adobe Flash player
by summerTree 18 Jul 2010
/**
 * Copyright summerTree ( http://wonderfl.net/user/summerTree )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/yWay
 */

package 
{
    //author 夏天的树人
    import flash.display.Sprite;
    import flash.display.Shape;
    import flash.filters.*;
    import flash.geom.*;
    [SWF(backgroundColor="#000000")]
    public class Main extends Sprite
    {
        private var pen:Shape=new Shape();
        public function Main()
        {
            addChild(pen);
            //创建滤镜组合
            pen.filters=[  
                         new BlurFilter() ,
                         new GlowFilter(),
                         ];
            init();
        }
        //利用黄色线和滤镜组合形状
        private function init():void
        {
            pen.graphics.lineStyle(1,0xFFFF00);
            pen.graphics.moveTo(250,200);
            var n:int=360;
            while (n--)
            {
                //n++;
                //var point:Point=Point.polar( 200 ,Math.random()*360);
                var point:Point=Point.polar(200 ,Math.random()*2*Math.PI); //随机生成线条
                //pen.graphics.moveTo(250,200);
                pen.graphics.lineTo(250+point.x,200+point.y);
            }
        }
    }
}