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

How can I use javascript modules with Animate HTML5?

Participant ,
Nov 10, 2021 Nov 10, 2021

I have ThreeJS included with an Animate HTML5 project and want to update to use the new ThreeJS javascript module.  I included all my javascript files as modules, including createjs.min.js so that all of the javascript variables are included.  I am getting these errors

 

     TypeError: undefined is not an object (evaluating 'this.createjs')                                 create.min.js       13

     TypeError: undefined is not a constructor (evaluating 'new cjs.MovieClip()')             (myfile).js.          29

     ReferenceError: Can't find variable: AdobeAn                                                             (myFile).html

 

There seems to be a problem with how these variables are constructed, such as 

 

     var comp=AdobeAn.getComposition("A2ED17")

     this.createjs=this.createjs||{},

TOPICS
Error , How to
137
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
no replies

Have something to add?

Join the conversation