Little recursive Curve example - ActionScript