Another possibility: CCTMXTiledMap appears to be defined here:
\cocos2d\tileMap_parallax_nodes\CCTMXTiledMap.js
The tutorials I’ve seen do not import this. Specifically, your cocos2d.js file, where all the cc.loadjs calls are made. You may need to add additional calls there to load the contents of the tileMap_parallax_nodes folder. At the very least, the CCTMXTiledMap.js file, but to be safe, maybe all files?
That solved it. I was not importing all of the necessary files. I needed CCTMXTiledMap.js and there were a handful of dependencies. I just grabbed this list of files from the “tests” folder.
Is there a good way to sort out which files I need and which I don’t? Or is it best to just to have them all?
I’m not actually sure myself. Minimalist way would be to add one file at a time whenever you encounter this sort of “Class is undefined” behaviour. Safest way is to mass load I guess. I haven’t seen any documentation about these sort of dependencies, but I’ve only been using this framework for a few days so it may just be that I haven’t come across it yet.
I ended up using the Ant build script to combine all the class scripts. That worked very well. Minimized scripts containing all of the classes are already included in the “tests” folder.