Cannot read property 'addSpriteFrame' of undefined

Hello everyone, i’m a web programmer (both front and back end).

i’m new in coco2djs and want learn it from coco2djs doc (parkour tutorial).

but i get error “Uncaught TypeError: Cannot read property ‘addSpriteFrame’ of undefined” at adding animation sprite, where is my fault??


thank you before and sorry for my poor english.

Please, show content of Animation.js and especially at 14 line

I had the same problem. it happened because I used cocos version 3 but i’ve downloaded tutorial for 2.xx version. Check, maybe i’ve right.