TypeError: 'undefined' is not a constructor (evaluating 'new cjs.MovieClip()')
This is correct? Or is there a new reference or Toolkit for CreateJS?TypeError: 'undefined' is not a constructor (evaluating 'new cjs.MovieClip()')
--
You received this message because you are subscribed to the Google Groups "CreateJS Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to createjs-discus...@googlegroups.com.
To post to this group, send email to createjs-...@googlegroups.com.
Visit this group at http://groups.google.com/group/createjs-discussion?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
TypeError: 'undefined' is not a constructor (evaluating 'new createjs.PreloadJS(false)')
Correct, MovieClip is not included in the createjs file. There are a couple of reasons for this:1. MovieClip is not used much at all except with Toolkit, and we didn't want to pad out the core library with tool specific code.2. More importantly, MovieClip registers a plugin with Tween. Having any plugin registered with Tween has a small impact on performance (minor, but measurable), and we didn't want to force that on developers who weren't using MovieClip, especially given #1.We're always open to feedback on these types of things, but at present the workflow requires that you include createjs & the movieclip libraries separately.Cheers,Grant.
On 2013-03-08, at 15:53 , Benjamin Taylor <infinit...@gmail.com> wrote:
This is correct? Or is there a new reference or Toolkit for CreateJS?TypeError: 'undefined' is not a constructor (evaluating 'new cjs.MovieClip()')--
You received this message because you are subscribed to the Google Groups "CreateJS Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to createjs-discussion+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to createjs-discus...@googlegroups.com.
var loader = new createjs.PreloadJS(false);
loader.installPlugin(createjs.SoundJS);
loader.onFileLoad = handleFileLoad;
loader.onComplete = handleComplete;
//Add HUD assets to manifest
for(object in mHUD.manifest){
manifest.push(mHUD.manifest[object]);
}
loader.loadManifest(manifest);