flash on 2011-12-25
/**
* Copyright vjdrkenta ( http://wonderfl.net/user/vjdrkenta )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/jUen
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
var repeatCount:int = 20;
for(var i = 0; i < repeatCount; i++){
var color:int = Math.floor(Math.random()*0xffffff);
var yohakux:int = 50/Math.random();
var yohakuy:int = yohakux;
var shikakuw:int = 465 - 2*yohakux;
var shikakuh:int = shikakuw;
graphics.beginFill(color, Math.random()/4);
graphics.lineStyle(1, color, 1);
graphics.drawRect(yohakux, yohakuy, shikakuw, shikakuh);
}
graphics.endFill();
}
}
}