I have a menu that have four buttons; start, about me, portfolio and contact.
If the visitor hover above the buttons they change color and when I click on one of them the button should change to a different color and stay that way until I click on one of the others. Just to show people where they are.
But the code just get so big. I have to add code to each and all of buttons telling them what to do if I click on them and not the others and when hovering above them.
Is there a easier way to just collect the code and put it to a single frame or something? I know how to work with if/else and variables but that´s pretty much it when it comes to ActionScripting.
Try out this…simple you can increase the number of MCs passed
Int this code and b1 and b2 are the MC on the stage with two frames. We’ve added stop() on the each frames to avoid loop. Write the code on the first frame…