Quick OOP question

**EDIT: DISREGARD, a Flash bug caused the problem (keyframe of a mask interfered with a button, which it technically should NOT have [and doesn’t elsewhere in the movie]… not a code problem, just a Flash bug that took me forever to figure out).

KEY:**

“_root” = root
“main” = MC
“main.homeButton” = button within main MC

This code is on Frame 1 of the root timeline:

//BUTTON NAVIGATION
main.homeButton.onRollOver = function() {
    main.homeButton.gotoAndPlay("over");
}
main.homeButton.onRollOut = function() {
    main.homeButton.gotoAndPlay("out");
}
main.homeButton.onPress = function() {
    main.gotoAndPlay(10);
}

DESCRIPTION: On Frame 1 of the root timeline is an MC called “main.” Within that is a button called “homeButton.”
**
THE PROBLEM:**
This code jumps the playhead off FRAME 1 of the root timeline and into “main” MC:

main.homeButton.onPress = function() {
    main.gotoAndPlay(10);

Since the rollover effects of the button are on FRAME 1 of the root timeline, the button no longer functions when rolled over (or clicked) after the initial onPress is triggered. This is due to the fact that the playhead is now stuck in frame 10 of the “main” MC.

I just want the “main” MC to play without moving the playhead off FRAME 1 of the root timeline (where all my actionscript is!).

I don’t undrestand the problem, really, **because this rollover code does NOT jump the playhead off the root timeline:
**


main.homeButton.onRollOver = function() {
    main.homeButton.gotoAndPlay("over");
}
main.homeButton.onRollOut = function() {
    main.homeButton.gotoAndPlay("out");
}
}

But, for some reason this onPress code DOES:


 main.homeButton.onPress = function() {
     main.gotoAndPlay(10);
 }