Skip to main content
Inspiring
March 24, 2019
Answered

Flash to HTML5 Canvas javascript error when publish

  • March 24, 2019
  • 3 replies
  • 3957 views

I'm converting old Flash animations to Animate CC HTML5 Canvas animations. I load the .fla file, convert it to HTML5 Canvas form, publish the file with all of the code commented out, and still get a "A JavaScript error occurred" result. Any idea why this is and how I can solve this problem? Many thanks.

This topic has been closed for replies.
Correct answer Hugo_Reyes

I'm having the same problem with Animate CC version 19.2. I'm a Mac user, Mojave 10.14.5.

I resolved it in this way: I noticed that when I use Circles Shapes with Shape Tweens, if I tried to export it display the js error. Instead of normal circles, I started using Rectangle Primitive Tool with border radius.

It happens that again with Lines and Shape Tweens, and I know that causes the error because when I remove those layers, the file exports without no problems. So I think that there is a bug in Animate CC 19.2.

I hope that exist another solution, because I have to rework some transitions, that took some time of my day.

3 replies

Participant
December 11, 2019

To add something to the same error. I've noticed that now, if you use the (back) easing, and you don't add the necessary amount of frames to the timeline, that will crash your render and it will trigger a javascript error, but if you change the easing to another one when you get the error, like ease-in-out quart, for instance, it will work. apparently you can't crush your animation timeline anymore.

Hugo_Reyes
Hugo_ReyesCorrect answer
Participant
June 12, 2019

I'm having the same problem with Animate CC version 19.2. I'm a Mac user, Mojave 10.14.5.

I resolved it in this way: I noticed that when I use Circles Shapes with Shape Tweens, if I tried to export it display the js error. Instead of normal circles, I started using Rectangle Primitive Tool with border radius.

It happens that again with Lines and Shape Tweens, and I know that causes the error because when I remove those layers, the file exports without no problems. So I think that there is a bug in Animate CC 19.2.

I hope that exist another solution, because I have to rework some transitions, that took some time of my day.

Inspiring
March 24, 2019

More information...the problem seems to be with dynamic text boxes. For some reason, if I have even one of them, I get the JavaScript error message. I want text boxes that I can change the text during use. What do I do? Again, thanks.

Mark