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: アステロイド (eye version)

Get Adobe Flash player
by makc3d 28 May 2009
/**
 * Copyright makc3d ( http://wonderfl.net/user/makc3d )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/3nTz
 */

// forked from 178ep3's アステロイド (eye version)
package 
{
	import flash.display.Sprite;
	
	public class stepLine extends Sprite
	{
		private var step:uint=4;
		
		public function stepLine()
		{
			var n:uint = stage.stageWidth / step;
			for(var i:uint=0; i<n; i++)
			{
				with(this.graphics)
				{
					lineStyle(1,0x000000,0.5);
					moveTo(0,i*step);
					lineTo(i*step,stage.stageHeight);

					moveTo(stage.stageWidth,i*step);
					lineTo(i*step,0);

					if (i % 2 == 0) {
					lineStyle(1,0x007FFF,0.5);
					drawCircle (
						stage.stageWidth * (0.5 + 0.1 * Math.sin (2 * i * Math.PI / n)),
						stage.stageHeight * (0.5 + 0.1 * Math.cos (2 * i * Math.PI / n)),
						stage.stageWidth / 6
					);}
				}
			}
		}
	}
}