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

アステロイド

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

package 
{
	import flash.display.Sprite;
	
	public class stepLine extends Sprite
	{
		private var _shape:Shape;
		private var step:uint=4;
		
		public function stepLine()
		{
			for(var i:uint=0; i<stage.stageWidth/step; 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);
				}
			}
		}
	}
}