CLICK HERE TO COPY
Actionscript:
var resolution:Number = .03;
var pointNum:int = Math.ceil(1 / resolution);
var bezA:Array = new Array();
populateArray(bezA);
var a:Sprite = dot(100, 200);
var b:Sprite = dot(200, 100);
var c:Sprite = dot(300, 200);
var bezB:Array = new Array();
populateArray(bezB);
var d:Sprite = dot(300, 100, 0xCCCC00);
var e:Sprite = dot(120, 130, 0xCCCC00);
var f:Sprite = dot(200, 300, 0xCCCC00);
addEventListener(Event.ENTER_FRAME, onLoop);
function onLoop(evt:Event):void {
with(graphics){
[...]