Skip to main content
Known Participant
July 25, 2023
Answered

buttons

  • July 25, 2023
  • 3 replies
  • 684 views

Hi Guys

I have a lot f button in my project. I am making an interactiv book 28 pages in all. each page has on average 3 buttons a back btn, next btn and home btn. Some pages also have buttons for frame by frame animation all working well. My problem is on the 7th frame/page of my book I put in the usual 3 btns back,next and home, they roll over and change colour ok but they dont move to their asigned pages. 

Help! Alan Y

    This topic has been closed for replies.
    Correct answer ClayUUID

    You absolutely should NOT be implementing your basic navigation as the same set of three buttons duplicated 28 times. That will be a nightmare to maintain and modify. Want to slightly adjust the position of a button? Now you have to make the same change 28 times.

     

    What you should be doing is creating the three nav buttons ONCE, then coding them to move back and forth from the current page.

    3 replies

    ClayUUIDCorrect answer
    Legend
    July 27, 2023

    You absolutely should NOT be implementing your basic navigation as the same set of three buttons duplicated 28 times. That will be a nightmare to maintain and modify. Want to slightly adjust the position of a button? Now you have to make the same change 28 times.

     

    What you should be doing is creating the three nav buttons ONCE, then coding them to move back and forth from the current page.

    Alan5E07Author
    Known Participant
    July 25, 2023

    kglad
    Community Expert
    Community Expert
    July 25, 2023

    check your button's instance name.

     

    if that fails to show the problem, carefully copy the instance name from your code, remove your button from the stage, re-add your button to the stage and paste the button name (making sure there are no spaces) and retest.

    Alan5E07Author
    Known Participant
    July 27, 2023

    Hi 

    Removed the button and gave it an instance name and all working now. I think the problem was i let the computer add an instance name and it just gave numbers whitch caused a lot of confussion because i could not remember what numbers went with the buttons but giving them all an instance name from now on. Lesson learnt!

    ps. Also confussion with program start frame 1 and actions starting at 0 and just add to that if button going forward put one number less but if button going back to frames you need to go two numbers less.  Hope that make sense!.

    Anyway all working well now fingers x.

    Thanks again

    Alan Y

    JoãoCésar17023019
    Community Expert
    Community Expert
    July 25, 2023

    Hi.

     

    Can we see the related code?

     

    Regards,

    JC