Play Button Help

wats the action script for a button to play, cause i tryed

on (release) {
gotoAndPlay(40);
}

but i tihnk im missing something, (i do not no action script), but i think im missing the part to stop the video, but im not sure how to do that.

thank you