Copy link to clipboard
Copied
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||{},
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now