Current button in AS3?

can anyone explain me how to do this in AS3? I am new to AS3.

I want this to happen: "when I click on a button that gets selected and it becomes inactive and again if you click on other button, previous button becomes active again.

i have an AS2 file. I like that to convert in as3.

please find the as2 file here