A very basic question

what i want to do is this:

next_btn.onRelease or Key.ENTER.onRelease= function() {
_root.nextFrame();
};

i know this doesnt work, but how do i do it?

thanks

Adbul