Skip to main content
Inspiring
July 23, 2025
Answered

html5 canvas project crashes when i add a code for a button

  • July 23, 2025
  • 1 reply
  • 444 views

At a specific frame when i add a code snippet for a button to go to next frame it causes the whole project to fail when i test in browser. The whole html5 canvas website is blank and i get these errors:
Uncaught SyntaxError: Unexpected token ':'
rawsourcescybertronic.html:24 Uncaught ReferenceError: AdobeAn is not defined
at init (rawsourcescybertronic.html:24:11)
at onload (rawsourcescybertronic.html:101:44)
When code is removed it works perfectly fine

    Correct answer kglad

    Copy the frames from the problem layer and paste them in a new one?


    yes, paste into a new layer.  delete the old. save with a version number appended so youcan return to your current fla if things get worse.

    1 reply

    kglad
    Community Expert
    Community Expert
    July 23, 2025

    remove the colon

    Inspiring
    July 23, 2025

    Where? Where is the colon

    kglad
    Community Expert
    Community Expert
    July 23, 2025

    the console will link to the line of code.