Hello everyone
I have abit of an issue with enabling and disabling buttons.
They enable and disable fine.
Unfortunately when they re-enable the buttons don’t go back to frame(1)
This makes me extremely sadface.
Below is a sample of the actionscript code, It’s abit shabby, Im sure there is a cleaner way of doing this.
If anyone can help you will save my brain from melting
[COLOR=DarkSlateGray][COLOR=DeepSkyBlue]stop();
//Activate Button functions ----------------------------------------------------
function reActivateImgBtns() {
MM_Blog_H.enabled = true;
MM_Blog_Roll.gotoAndStop(1);
}
function deActivateImgBtns() {
MM_Blog_H.enabled = false;
}
function reActivateTxtBtns() {
TXT_Blog_H.enabled = true;
TXT_Blog.gotoAndStop(1);
}
//Activate Button functions END ----------------------------------------------------
//IMG hit functions ----------------------------------------------------
MM_Blog_H.onRollOver = Blog_over;
MM_Blog_H.onRollOut = Blog_out;
MM_Blog_H.onPress = Blog_press;
//IMG hit functions END ----------------------------------------------------
//TXT hit functions ----------------------------------------------------
TXT_Blog_H.onRollOver = Blog_over;
TXT_Blog_H.onRollOut = Blog_out;
TXT_Blog_H.onPress = Blog_press;
//TXT hit functions END ----------------------------------------------------
//NAV BUTTON functions ----------------------------------------------------
function Blog_over() {
Txt_Blog.gotoAndPlay(2);
MM_Blog_Roll.gotoAndPlay(2);
}
function Blog_out() {
Txt_Blog.gotoAndPlay(15);
MM_Blog_Roll.gotoAndPlay(20);
}
function Blog_press() {
reActivateTxtBtns();
deActivateImgBtns();
MM_Blog_Roll.gotoAndPlay(20);
MM_Blog.gotoAndPlay(2);
TXT_Blog_H.enabled = false;
}
//NAV BUTTON functions END ----------------------------------------------------[/COLOR]
[/COLOR]