[Help] Bolts Circle use AS3

This is example -> http://www.doov.com/cgi-bin/bolthole.cgi

I want to make this one with AS3. I’m newbie with Math.Can someone help me please ? Thanks so much