Skip to main content
Known Participant
December 8, 2016
Answered

Button navigations -Confused

  • December 8, 2016
  • 1 reply
  • 348 views

I have a very simple navigation I'm experimenting with and I seem to be getting something wrong with the action script to control the buttons.

I can click and it goes through once but then the buttons cease to function.

Would someone please give this a look and see if they can help.

Most appreciated.

Dropbox - dan_test1 copy.fla

Thanks !

    This topic has been closed for replies.
    Correct answer Colin Holgate

    This had me puzzled for a little while! The problem is that in frame 45 you have the three buttons as new keyframes, which on its own wouldn't matter, but in the new keyframe you have named the three buttons with a different name. In the first frame you set it up to expect the button to be called myHome, myabout, or mycontact, but in frame 45 you changed those names to home_btn, about_btn, and contact_btn.

    It's odd that there was no error message, but it's not surprising the buttons stopped working because of the name change.

    1 reply

    Colin Holgate
    Colin HolgateCorrect answer
    Inspiring
    December 8, 2016

    This had me puzzled for a little while! The problem is that in frame 45 you have the three buttons as new keyframes, which on its own wouldn't matter, but in the new keyframe you have named the three buttons with a different name. In the first frame you set it up to expect the button to be called myHome, myabout, or mycontact, but in frame 45 you changed those names to home_btn, about_btn, and contact_btn.

    It's odd that there was no error message, but it's not surprising the buttons stopped working because of the name change.

    Known Participant
    December 8, 2016

    Thanks I thought it was strange. What would you recommend as the quickest fix?

    Colin Holgate
    Inspiring
    December 8, 2016

    There's no reason to have the keyframes at the end. If you right-click on each of those three (in frame 45 of the Contact, About, and home layers) you can do a Clear Keyframe. Then the frame 45 version of the button will keep the same name.