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: forked from: fr004

色かわらない?
Get Adobe Flash player
by nutsu 12 May 2009
    Embed
// forked from yokozunat's forked from: fr004
// forked from kimucha's fr004
package 
{
	import frocessing.display.F5MovieClip2DBmp;
	//色かわらない?
	[SWF(backgroundColor="#ffeeff", frameRate=20)]
	
	public class Main extends F5MovieClip2DBmp
	{
		private var _saveX:Number = 0;
		private var _saveY:Number = 0;
		public function Main() 
		{
			super();
			size(465, 465);
			rectMode(CENTER);
			colorMode(RGB, 255, 255, 255, 100);
			//変わらない?
			//swcが更新されていけるようになりました。すんまそん
			background(255, 244, 255, 100);
			fill(255, 255, 255);
			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;
		}
	}
	
}