Ok, so pretty much I have been self taught since day one. But have come to realize that I have picked up some bad habits along the way.
When it comes to creating buttons, I usally make an MC with the animation that I want. Then I create an invisible button over the MC. And this AS.
code:
myButton.onRelease = function() {
thisbutton.enabled = false;
otherbuttons.enabled = true;
if (otherButtonMC._currentFrame == 5) {
otherButtonMC.gotoAndPlay(6);
}
};
So on and so on. Which is fine if you have say only 6 buttons for a main menu.
But I just rescently created an image gallery of sorts that had 56 buttons.
Well, my little bit of code turned into 12000 lines of code. It wasn't a big deal, just a lot of copying and pasting, but there has to an easier way.
Please help me re-think my logic about this concept.
:(