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

KurukuruMawaru

author:keiso

履歴
2009/01/06 初公開
Get Adobe Flash player
by keiso 07 Jan 2009
    Embed
/*
author:keiso

履歴
2009/01/06 初公開
*/
package
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.Event;

    [SWF(frameRate="30", backgroundColor="#000000",width=465,height=465)] 

	public class Circles extends Sprite
	{
		private var p:MovieClip = new MovieClip();
		public function Circles()
		{
			var m:MovieClip;
			var max:uint =120;
			var colourArray:Array = [0xE81000,0xFFCA09,0xFF0232,0x001AE8,0x09FF41,0xffffff*Math.random()];
			
			for(var i:uint =0;i<max;i++){
				var x:Number = stage.stageWidth/2+(i/max) ;
				var y:Number = stage.stageHeight/2+(i/max) ;
				m = new MovieClip();
		        m.graphics.beginFill(colourArray[Math.round(Math.random()*5)]);
		        m.graphics.drawCircle(x*-1,y*-1, (max-i)*3);
		        m.graphics.endFill();
		        m.x = x+ (Math.sin(i)*3);
		        m.y = y+ (Math.cos(i)*3);
		        p.addChild(m);
			}	
		    addChild(p);
		    p.x = p.y =232;
		    
		    this.addEventListener(Event.ENTER_FRAME,update);
		}
		public function update(e:Event):void{
			p.rotation +=4;
		}
		
	}
}