Copy link to clipboard
Copied
I am trying to convert my old animations into HTML5 Canvas projects for my clients. The number of difficulties encountered is ridiculous. Now I get a "too much recursion" error (InternalError: too much recursion - JavaScript | MDN ). This is basically a "preemptive" stack overflow.
I have removed all custom javascript code from my project. This is definitely coming exclusively from the code generated by Animate, not manually written code. It goes away when I drastically reduce the number of frames in my movieclips. Does anyone have any helpful information on this error and how to get around it? Is there a maximum number of frames for movie clips in Canvas projects?
Hi.
I'm sorry about that.
It happened to me this week and the reason was because I had a very long shape tween animation in the main timeline.
Can you verify if you have something similar?
Regards,
JC
Copy link to clipboard
Copied
Hi.
I'm sorry about that.
It happened to me this week and the reason was because I had a very long shape tween animation in the main timeline.
Can you verify if you have something similar?
Regards,
JC
Copy link to clipboard
Copied
Yes JC, I can confirm that there are several tweens, simple fade-ins and fade-outs using the alpha channel as well as some tweening of the X and Y position. When fading in and out I didn't bother creating a separate keyframe. So the fade-in, fade-out, and the long period of it being displayed at full opacity is indeed one very long tween. I will try to restructure this and see if it helps. Will report back.
Copy link to clipboard
Copied
Nice.
Wherever possible, please consider using classic tweens instead of shape tweens.
Regards,
JC
Copy link to clipboard
Copied
I removed the tweens and replaced them with Classic tweens.