as2 or as3?
I am trying to use Action Script 3.0
if your button
1. is on the main timeline,
2. has reference name btn1
3. your code is attached to a frame where your button exists,
the following will work for as long as your button continues to exist:
gotoAndPlay("Fframe 3","scene 2);