How do i play sound by using actionscript

when u press a button down how do the sound start and how does it end… i want to generate that with my picture loop

jure