Skip to main content
PATurmel12
Inspiring
November 10, 2021
Question

How can I use javascript modules with Animate HTML5?

  • November 10, 2021
  • 0 replies
  • 142 views

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||{},

This topic has been closed for replies.