Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

"A Javascript Error Occurred" with no additional explanation

New Here ,
Nov 04, 2021 Nov 04, 2021

Hi!

I'm working on a project for school that involves some simple animation and basic scripting on a HTML 5 canvas. My issue is that when I go to test the animation, I get a "A javascript error occured" message, and I'm at a loss as to what could be causing it.

 

I have some scripting in actions, but even if I completley delete this scripting, I still get the error message when testing the movie. I saw that there was another post with the same error message a few years back, and their fix was to restart animate, restart the computer and try unchecking "export image assets" under publish settings.

javascript error.pngexpand image

I'm at a loss! 

TOPICS
Code , Error
3.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 04, 2021 Nov 04, 2021

If you attempt this on a different computer - do you recieve the same error message? It may be this particular installation has issues.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 04, 2021 Nov 04, 2021

Yes, I've got another machine with Animate 2022 installed and I get the exact same message unfortunately.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 04, 2021 Nov 04, 2021

It likely has more to do with the file itself then... one thing to try: File > Convert To... > ActionsScript 3.0 - once that file is created, convert it back to HTML5 Canvas to see whether he conversion fixes any file-based problem. The original file will be preserved. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 05, 2021 Nov 05, 2021

Thanks for your reply, I have converted it to Actionscript 3.0, and back to HTML 5, but I'm still getting the same Javascript error message when testing or trying to publish the animation.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2023 Mar 26, 2023

Was this ever solved? I am having the same issue. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2023 Mar 26, 2023

@fortunalight 

 

comment out all your code and insert an initial empty keyframe on your main timeline.  test

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2023 Mar 26, 2023

I am still getting the same error. I cannot preview or publish my document.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2023 Mar 26, 2023

save with a name.

then remove half the main timeline frames

test

 

if that triggers the same error, remove the half of the main timeline.

test

 

results?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 29, 2024 Apr 29, 2024

Same error here....i've uninstalled and reinstalled animate...make all updates and upgrade..  no solutions found..  unfortunately...no support from adobe...  so I need to remake my symbols... 😞

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 29, 2024 Apr 29, 2024

upload your fla somewhere and post a link

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 26, 2024 May 26, 2024

Hello we're encountering this error too.
It's only happening on my colleagues machine with the same files that work on mine.
When she tries to publish or test a HTML/JS output it throws 'A Javascript error occurred.' and hangs.
The process is stuck on '2 of 4: Convert to JSX'
We've been using this set up for years and its the first time we've encountered this.
Was there any update?

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 26, 2024 May 26, 2024

no.

 

if restarting the problematic computer doesn't work, have them reset their preferences.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 26, 2024 May 26, 2024

I can't believe the old 'have you tried restarting' IT response actually worked. Thank you so much!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 26, 2024 May 26, 2024

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 27, 2024 Jun 27, 2024

ttt.JPGexpand image

체크 해제 하세요~

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 12, 2024 Dec 12, 2024
LATEST

Unclicking the 'Optimize image dimensions' from above screenshot fixed the issue for me.

Im building out different sized digital banner ads; always start a new size from a previously sized one (ie starting with a 300x600; change document size to 160x600 and adjust existing assets / timeline). Thought it had something to do with that.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines