Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Button navigations -Confused

Explorer ,
Dec 07, 2016 Dec 07, 2016

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 !

286
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 07, 2016 Dec 07, 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 worki

...
Translate
LEGEND ,
Dec 07, 2016 Dec 07, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 07, 2016 Dec 07, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 07, 2016 Dec 07, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 07, 2016 Dec 07, 2016
LATEST

Got it. Thanks!!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines