as曲线的绘制
static function curvePlus(path:MovieClip, a1, control1, control2, doNoDraw:Boolean) {
path.moveTo(a1.x, a1.y);
var c1 = new point(control1.x, control1.y);
var c2 = new point(control2.x, control2.y);
var m = point.interpolate(c1, c2, 0.5);
if (doNoDraw == true) {
return (m);
}
path.curveTo(c1.x, c1.y, m.x, m.y);
//curveTo(c2.x, c2.y, a2.x, a2.y);
return (m);
}
补充:flash教程,As3.0