Skip to main content
Participating Frequently
February 29, 2024
Respondido

Button issue in animate HTML5 error message

  • February 29, 2024
  • 2 respostas
  • 1672 Visualizações

Error message 'To add code for this object please select and instance of the object in the main timeline or movieclip timeline'. This message pops up when I click 'Click to go to frame and play'. I am trying to make a replay button.  I am using HTML5.

I don't know if this is related, but when I first click on my animation there is nothing in the timeline; I have to double click on my charecter to make my animation appear.

I am very much a beginner user of animate, but I would be greatful for any help you can provide. 

If you need any additional context I will be happy to provide some.

Thanks,

Liz

    Este tópico foi fechado para respostas.
    Melhor resposta por kglad

    i suspect the problem's caused by trying to add something to a tween layer (or even worse nested tweens).

    2 Respostas

    kglad
    Community Expert
    Community Expert
    February 29, 2024

    yes, what type of object is that replay object?  ie, did you draw somethings > right click > click convert to object???

    Participating Frequently
    March 1, 2024

    I used the shape tool and converted it to an object

    JoãoCésar17023019
    Community Expert
    Community Expert
    February 29, 2024

    Hi.

     

    You need to make sure that you're working on a HTML5 Canvas document, that you are trying to add a HTML Canvas snippet and that you have a Movie Clip or Button instance on stage selected before using the snippet.

    Can you show as your complete view and if you have an instance selected?

    Regards,

    JC

    Participating Frequently
    March 1, 2024

    Here is a full screenshot, I am using HTML 5 canvas and snippets

    JoãoCésar17023019
    Community Expert
    Community Expert
    March 1, 2024

    Thanks.

     

    Which code is generated for you?

    When I select a Button instance here and double click on Click to Go to Frame and Stop on the Snippets panel it adds the code correcly.