メモ 2011-10-17
/**
* Copyright kenji_special ( http://wonderfl.net/user/kenji_special )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/79Vm
*/
package {
import flash.display.Sprite;
[SWF(frameRate="30", backgroundColor = "#000000", width="465",height="465")]
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
for(var count:int = 0; count < 2; count++){
for(var i:int = 0; i < 10; i ++){
for(var j:int = 0; j < 10; j++){
var sp:Sprite = new Sprite();
sp.graphics.beginFill(0xff0000);
var rad:int = 80 - 60*count;
sp.graphics.drawCircle(0, 0, rad);
sp.graphics.endFill();
sp.x = 40 + 80 * i;
sp.y = 40 + 80 * j;
sp.alpha = 0.2 + 0.8 * count;
this.addChild(sp);
}
}
}
}
}
}