createJS - Uncaught ReferenceError: lib is not defined
I am at the beginning stages of creating a game using I am using Adobe Animate CC and CreateJS and I get the following error: Uncaught ReferenceError: lib is not defined. Basically right now I am just trying to get a background and some random numbers to appear on screen. I have created my background and random numbers as symbols in Adobe Animate, and I have also given them a class name by assigning them "linkage". I have included the javascript file created by Animate in my html along with a link to CreateJS and the following code:
Here is my Javascript code:
class NumberedBox extends createjs.Container
{
constructor(number=0)
{
super();
var movieclip = new lib.NumberedBox();
movieclip.numberedText.text = number;
this.addChild(movieclip);
movieclip.x = Math.random() * 200;
movieclip.y = Math.random() * 200;
}
}
class Game {
constructor()
{
this.canvas = document.getElementById("canvas");
this.stage = new createjs.Stage(this.canvas);
createjs.Ticker.framerate = 60;
createjs.Ticker.on("tick", this.stage);
this.stage.addChild(new lib.Background());
this.stage.addChild(new NumberedBox(88));
}
}
var game = new Game();
And here is my HTML:
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
<script src="scripts/count-game-graphics.js"></script>
<script src="scripts/es6-games_ori.js"></script>
Any ideas as to what I am doing wrong?
Thanks
