So apparently you have to put actionscript in the timeline instead of the button in CS3 Professional. I'm a actionscript newb. My old actionscript to have a go to and stop function was:

on(release){
gotoAndStop("test");
}

How do i get actionscript so when I click a button it will go to and stop, to a certain frame label in the timeline? Im assuming somewhere in the script you have to indicate what button you want the script to work for. Please help.