リハビリ
ぼちぼちやっていきましょう
/**
* Copyright Nowloading_ ( http://wonderfl.net/user/Nowloading_ )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/qVu6
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var en:makeBall;
public function FlashTest() {
for(var i:int=0;i<40;i++){
var r:int = Math.random()*50;
var p:int = Math.random()*10;
var c:uint = Math.random()*0xffffff;
var x:int = Math.random()*465;
var y:int = Math.random()*465;
en = new makeBall(r,p,c);
en.x = x; en.y = y;
addChild(en);
}
}
}
}
import flash.display.Sprite;
class makeBall extends Sprite{
public function makeBall(r:int,p:int,c:uint){
graphics.beginFill(c,0.5);
graphics.drawCircle(0,0,r);
}
}