conversion of .fla to HTML5 canvas producing javascript error
Copy link to clipboard
Copied
HI,
I am on Adobe Animate CC 2018 i am trying to convert .fla file into html5 canvas but when i go to file and convert into html5 Canvas and this convert into html file and javascript file and the code of ActionScript is commented out but when i run this file it is throwing syntax error on console like this.
Uncaught SyntaxError: Unexpected token =
and here is the code that is generating error
this._element = new $.(options);
this._el = this._element.create();
var $this = this;
this.addEventListener('added', function() {
$this._lastAddedFrame = $this.parent.currentFrame;
$this._element.attach($('#dom_overlay_container'));
});
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(1,1,25.1,25.1);
[Moved from the Forum Comments forum (which is for issues related to these forums themselves) and into a forum for Animate questions - moderator]
Copy link to clipboard
Copied
check the fla for uncommented code.
Copy link to clipboard
Copied
That's jQuery UI component code. It appears to be generating for a component with a nonexistent name. What did you do?
Copy link to clipboard
Copied
I just want to convert my .fla file into HTML5 so i opens .fla file into animate cc and convert it into HTML5 after conversion all the code is been commented and i just publish my file.
I want to remove these errors while publishing this file.
When i use Flash CS6 for conversion into HTML5 it didn't produce any error but when i use Animate CC it does.
Copy link to clipboard
Copied
converting to html5 is not a flawless automatic process.
to pinpoint the problem cause, create copies of your fla for testing. remove half the frames/layers of the main timeline and convert. if no problem test the removed half. continuing to remove 1/2 should allow you to pinpoint the frame(s) that contain the problematic object.
Copy link to clipboard
Copied
Yeah, i did this remove half of the frames and layers and find the problem with an object but i have a question why Adobe Flash CS6 is not producing an error and Animate CC still producing and the other question is why these objects produces these types of errors?
Copy link to clipboard
Copied
i don't know.

