To put an actionscript on a button. 


1. Select the button.

2. open the actionscript panel.

3. Type in:

on(release){
gotoAndPlay(framelabel or number);
}