Whats wrong with this? not legit code?

if (musicpage._currentframe==37) {
home_btn.onRelease=function(){
musicpage.gotoAndPlay(38);
}
}

…seems alright to me, but im not very smart