DD of my friend did this. Got ABB at AS - applied for medicine at Bristol got AAA offer - retook all 3 AS's with A2's and achieved A*AA.
Not sure how it worked out practically at school - think she just did the revision herself and sat the exams. Not sure if all schools allow this? Or how Unis view this -- should you tell them that you are retaking the ASs?