I have created a class that loads a Tiled Map file and esports it as a createjs Container which contains a lot of bitmaps. It works, but i'd like to cache the map once it is loaded.
Map is shown pretty well, but when I call I call that.sprite.cache() it trows
Uncaught Error: InvalidStateError: DOM Exception 11 easeljs-min.js:63
b.draw easeljs-min.js:63 b.draw easeljs-min.js:74
b.draw easeljs-min.js:75 b.update easeljs-min.js:84
(anonymous function) Main.js:43
b.dispatchEvent easeljs-min.js:14
c._tick easeljs-min.js:20 c._handleTimeout
https://gist.github.com/anonymous/5924127
How can I solve it? I read that error is thrown when images are not loaded, but even if I call it after 10 seconds it throws error! :/