fr004
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;
}
}
}