package { import __AS3__.vec.Vector; import flash.display.GraphicsPathCommand; import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; [SWF(backgroundColor=0xffffff)] public class lib_flex_animation_code_08_CurveDrawing extends Sprite { private var commands:Vector. = new Vector.(); private var data:Vector. = new Vector.(); public function lib_flex_animation_code_08_CurveDrawing() { stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE; commands.push(GraphicsPathCommand.MOVE_TO); data.push(200, 200); data.push(250, 100); data.push(300, 200); data.push(400, 250); data.push(300, 300); data.push(250, 400); data.push(200, 300); data.push(100, 250); data.push(200, 200); commands.push(GraphicsPathCommand.CURVE_TO); commands.push(GraphicsPathCommand.CURVE_TO); commands.push(GraphicsPathCommand.CURVE_TO); commands.push(GraphicsPathCommand.CURVE_TO); graphics.lineStyle(0); graphics.drawPath(commands, data); } } }