Skip to main content
Inspiring
Jul 23, 2025 6:06 AM UTC
Answered

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

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

    kglad
    kgladCorrect answer
    Community Expert
    Jul 24, 2025 1:54 AM UTC

    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.

    14 replies

    kglad
    Community Expert
    Community Expert
    Jul 23, 2025 1:05 PM UTC

    remove the colon

    Translate
    Inspiring
    Jul 23, 2025 3:31 PM UTC

    Where? Where is the colon

    Translate
    kglad
    Community Expert
    Community Expert
    Jul 23, 2025 4:15 PM UTC

    the console will link to the line of code.

    Translate