How To Write A Function To A Button

im just i NEWBIE who wants to get a passing grade to my teacher… and my problem is that he ask me to add some more modifications to my project… my project is a karaoke in flash… now he wants me to put pitch adjustments and tone adjustments of the song… whether the pitch of the song is high or low and the tone of the song is high or low… i badly needed ur help… PLS HELP ME MY FLASH MASTERS!! PLS… =(