As3 sling or catapult? (Drag on the ball release it and its shoots )

I want to make a basket ball. Drag on the ball release it and its shoots far depending on how far you drag it back… Anyone have a quick code to share? of tutorials for this??? thx