onRelease Script

Hi,

Why doesn’t this work? Is there something wrong with this script? The paths seem to be correct. What’s wrong?


mp = mainHeaderMC.globalNavMC;

mp.facebookBTN.onRelease = function() {
	gotoAndPlay("Facebook");
};

mp.snapshotsBTN.onRelease = function() {
	gotoAndPlay("Snapshots");
};

mp.campusBTN.onRelease = function() {
	gotoAndPlay("Campus");
};

mp.stay_connectedBTN.onRelease = function() {
	gotoAndPlay("Stay_Connected");
};

mp.extrasBTN.onRelease = function() {
	gotoAndPlay("Extras");
};

mp.contact_usBTN.onRelease = function() {
	gotoAndPlay("Contact_Us");
};