Right now the mc that has the buttons and this script is running on Frame 4 of the main timeline. When all the buttons have been clicked I want it to go to Frame 5 or the next frame in the main timeline.

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


does this delete my mc? I put it in the 1st frame of the mc but it's still not advancing.