Circle line up, Basic, for : flash on 2010-2-6
/**
* Copyright hazel_eyes ( http://wonderfl.net/user/hazel_eyes )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/bucP
*/
package {
import flash.display.Sprite;
public class circleTest extends Sprite {
public function circleTest() {
var cx:Number = 0;
var cy:Number = 0;
for (var j:int=0; j<12; j++) {
cy = j*40 +20
for (var i:int=0; i<12; i++) {
cx = i*40 + 20;
var circle:Sprite = new Sprite();
circle.graphics.beginFill(Math.random()*0xffffff);
circle.graphics.drawCircle(cx, cy, 20);
circle.graphics.endFill();
addChild(circle);
}
}
}
}
}