可以拖动 控制的 曲线:
代码如下:
package { import flash.display.GraphicsPathCommand; import flash.display.Sprite; import flash.events.MouseEvent; public class drawCurveLine0 extends Sprite { public function drawCurveLine0() { super(); lineContainer=new Sprite(); addChild(lineContainer); anchorContainer=new Sprite(); addChild(anchorContainer); anchorVector.push(200, 200); //起点 anchorVector.push(250, 100); //控制点1 anchorVector.push(300, 200); //节点2 anchorVector.push(400, 250); //控制点2 anchorVector.push(300, 300); anchorVector.push(250, 400); anchorVector.push(200, 300); anchorVector.push(100, 250); anchorVector.push(200, 200); commandVector.push(GraphicsPathCommand.MOVE_TO); commandVector.push(GraphicsPathCommand.CURVE_TO); //样式:曲线 commandVector.push(GraphicsPathCommand.CURVE_TO); commandVector.push(GraphicsPathCommand.CURVE_TO); comm