flash on 2012-1-22
/**
* Copyright ck1 ( http://wonderfl.net/user/ck1 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/bgHa
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
for (var i:uint = 0;i<1000;i++)
{
graphics.lineStyle(7,0x000000,1);
graphics.beginFill(Math.random()*0x0000FF);
//graphics.drawRect(Math.random()*stage.stageWidth, Math.random()*stage.stageHeight, 20, 20);
graphics.moveTo(Math.random()*stage.stageWidth, Math.random()*stage.stageHeight);
graphics.lineTo(Math.random()*stage.stageWidth, Math.random()*stage.stageHeight);
graphics.endFill();
}
}
}
}