I Need Help Please

PM me if you know why the error 1119 message appears with this-

right_btn.onPress = function() {
gotoAndStop(2);
};