Help with action scripts

how do i enable(turn on) an action script on the click of a button and how do i disable(turn off) an action script with a click of a button? is that possible to do? or can you give me an idea of doing it?