flash on 2009-12-24
♥0 |
Line 24 |
Modified 2009-12-24 00:53:05 |
MIT License
archived:2017-03-30 05:11:42
ActionScript3 source code
/**
* Copyright yama3 ( http://wonderfl.net/user/yama3 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/tSk0
*/
package {
import flash.display.MovieClip;
public class Index extends MovieClip {
public function Index() {
var xList:Array = [100,200,150,80,190];
var yList:Array = [100,100,10,230,130];
var rList:Array = [10,20,40,80,160];
for(var i=0; i<xList.length; i++) {
var circle:DrawCircle = new DrawCircle(
xList[i],yList[i],rList[i]);
addChild(circle);
}
}
}
}
import flash.display.MovieClip;
class DrawCircle extends MovieClip {
public function DrawCircle(centerX:Number,
centerY:Number, r:Number) {
graphics.lineStyle(2, 0x000000);
graphics.moveTo(centerX+r, centerY);
graphics
}
}