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

fr004

Get Adobe Flash player
by kimucha 20 Feb 2009
package 
{
	import frocessing.display.F5MovieClip2DBmp;
	
	[SWF(frameRate=20)]
	
	public class Main extends F5MovieClip2DBmp
	{
		private var _saveX:Number = 0;
		private var _saveY:Number = 0;
		public function Main()
		{
			super(true, 0xffffccff);
			size(465, 465);
			rectMode(CENTER);
			colorMode(RGB, 255, 255, 255, 100);
			fill(255, 255, 255, 20);
			stroke(66, 66, 66);
		}
		
		public function draw():void
		{
			var w:Number = dist(_saveX, _saveY, mouseX, mouseY) / 2 + 10;
			rect(mouseX, mouseY, w, w);
			_saveX = mouseX;
			_saveY = mouseY;
		}
	}
	
}