Skip to main content
Inspiring
June 11, 2017
Answered

Can a button's instance name change in HTML5?

  • June 11, 2017
  • 2 replies
  • 430 views

Hi All,

I am trying to make a HTML5 movie with "Previous" and "Next" buttons. But it appears that only the first instance name applies, and JS ignores all the rest of the names. Is this true, and is there a workaround?

Thanks.

Dan

    This topic has been closed for replies.
    Correct answer Red Naxela

    I was able to make it work by placing the buttons with new instance names on different layers within my movie. This is not great because I will end up with a whole lot of layers for just two buttons, but it works.

    2 replies

    Legend
    June 11, 2017

    Have both your previous and next button on the stage at the same time.

    Colin Holgate
    Inspiring
    June 11, 2017

    I believe that if the same symbol is in the same layer, but with a new name after a keyframe, it will use the first name it was given.

    What's an example case where you want the same button in the same layer to have a new name?

    Red NaxelaAuthorCorrect answer
    Inspiring
    June 12, 2017

    I was able to make it work by placing the buttons with new instance names on different layers within my movie. This is not great because I will end up with a whole lot of layers for just two buttons, but it works.

    Legend
    June 12, 2017

    Why would you end up with more than two layers for just two buttons?