AS3 Graphics API with chaining