root.gotoAndPlay(5) will not in the enterframe (as the playhead will keep on going to that frame and never pass it)

You'll need to delete the enterFrame first:

Buttons.onEnterFrame = function() {
if (button01 && button02 && button03 && button04) {
delete Buttons.onEnterFrame;
_root.gotoAndPlay(5);
}
};

gparis