same code, buttons failed to work after a few successes
Hello everyone, im new to animate and i am trying to make a simple html5 canveas-based interactive animation with mainly navigation buttons.
I use the gotoandplay/stop code from the code snippets a lot to build the buttons, they worked pretty well for the first few buttons, but i just couldn't make them work when i try to build more of them. Considering the numbers of the repeating codes I use, and the simple change I made (just changed the frame number as the instruction says), I think it would not make many sense to the post the whole codes here.
Google console gives me error report when i publish the animation, of which i think might be helpful to post them below:
Uncaught TypeError: Cannot read properties of undefined (reading 'addEventListener')
at lib.weneedtotalkaboutlynchsyndrome.frame_53 (index.js?1662924142788:3129:17)
at d._runActionsRange (createjs.min.js:19:7215)
at b._runActions (createjs.min.js:19:3229)
at b._runActionsRange (createjs.min.js:19:10055)
at b._runActions (createjs.min.js:19:3229)
at b.setPosition (createjs.min.js:19:1519)
at c._updateTimeline (createjs.min.js:14:29260)
at c.advance (createjs.min.js:14:28504)
at c._tick (createjs.min.js:14:28796)
at b._tick (createjs.min.js:13:11081)
I have taken advice from the other answers from the community to make a few changes to the settings (for example disable the advance layer), but it sadly didn't fix the problem.
I feel like it wouldn't be a really complicated problem as i only use the basic code from code snippets, but i just couldn't figure it out for days. could anyone help me with this... 😭 (i hope my description makes sense, but please let me know if there are details that i didn't make clear). Thank you in advance!
