I am not claiming that this is the most effecient way of solving this problem. However since none of the other self proclaimed "flash-experts" came up with an answer (or even a stab at the question) I decided to give the problem a quick fix.
See it work:
swf
Download source:
fla
There is very little actionScript to this its just a matter of buttons and moving to the selected frame (again i wish i knew how to script this but this is just a quick fix).
Basiclly I have made four buttons each with its own code:
ActionScript Code:
//put this script on first button:
on (press) {
gotoAndStop (2);
}
//put this script on second button:
on (press) {
gotoAndStop (3);
}
//put this script on third button:
on (press) {
gotoAndStop (4);
}
//put this script on fourth button:
on (press) {
gotoAndStop (5);
}
The button instance itself changes to a different color when you rollOver it. then to solve the problem of staying that color after a button is clicked I have added four frames (one for each button (you can make as many as you want)). When a button is clicked it tells the playhead to go to its own frame where it will turn the link a different color as well as display any content for that link.
NOTE: that the actions above move the play head to one frame past the corosponding link: the first button moves to frame 2, the second button moves to frame 3 and so on. This is because the first frame is reserved for when you start the movie and there are no buttons selected yet.
Hope this helps a little.
-zero