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

Dunno

Get Adobe Flash player
by p4n7a 06 Apr 2010
/**
 * Copyright p4n7a ( http://wonderfl.net/user/p4n7a )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/kDH9
 */

package {
    import flash.display.Sprite;
	import flash.events.Event;
	import flash.display.StageQuality;
    public class Dunno extends Sprite {
    		private var iw:Number=500;
		private var ia:Number=0;
        public function Dunno() {
        		stage.quality=StageQuality.LOW;
            addEventListener(Event.ENTER_FRAME, onframe);
            
        }
		private function onframe(event:Event):void {
			ia+=.01;
			graphics.clear();
			go(25, iw);
		}
		private function go(iter:uint, w:Number, i:uint=0):void {
			if(i<iter) {
				var cx:Number, cy:Number;
				cx=cy=250+(iw-w)/2;
				var a:Number;
				var aspan:Number=(Math.PI*2)/(i+1);
				for(var c:uint=0; c<i+1; c++) {
					var col:uint=c/iter*0xffffff;
					graphics.beginFill(col, .15);
					graphics.lineStyle(1,col,.2);
					a=c*aspan;
					graphics.drawCircle(250+Math.cos(a)*w,250+Math.sin(a)*w,w);
				}
				go(iter, w*(Math.sin(ia)*.85), i+1);
			}
		}
    }
}