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

conversion of .fla to HTML5 canvas producing javascript error

New Here ,
Jun 07, 2018 Jun 07, 2018

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

(lib. = function(options) {

    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]

1.0K
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 ,
Jun 08, 2018 Jun 08, 2018

check the fla for uncommented code.

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
LEGEND ,
Jun 08, 2018 Jun 08, 2018

That's jQuery UI component code. It appears to be generating for a component with a nonexistent name. What did you do?

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 ,
Jun 20, 2018 Jun 20, 2018

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.

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 ,
Jun 21, 2018 Jun 21, 2018

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.

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 ,
Jun 21, 2018 Jun 21, 2018

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?

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 ,
Jun 22, 2018 Jun 22, 2018
LATEST

i don't know.

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