I know it's a super n00b question, but it's fitting, seeing as how I'm super n00b at AS...
The animation has a pause button, a play button, a forward button, back button, & 1, 2, 3, 4, 5 buttons. The numeric buttons gotoandstop at designated frames to display something. I can easily AS the pause and play button to do their function, as well as the forward and back...
But here's my problem...
I need it, so when the animation is paused, the pause button switches to a different color, and when it is playing, to have the play button switch colors.
I tried to put both buttons in an MC, and on the first frame have the PLAY button highlighted with the following script for the pause button:
on (release) {
_root.stop();
nextFrame();
}
And on the 2nd frame, the PAUSE button highlighted with the following script for the play button:
on (release) {
_root.play();
prevFrame();
}
It works fine, HOWEVER, when I press any of the numeric buttons 1,2,3,4,5, and it gotoandstop to the designated frame, the PLAY button is still highlighted, which makes sense because the pause button would only highlight if the play button was pressed...not if one of the numeric buttons were pressed.
I don't care how I have to reformat the code or whatever, but I do need the play/pause/numeric buttons...Can anyone think of a way to make this work? Idealy, I could make the pause button simply change to a different MC when the animation is stopped at all.
Anyone?